You can setup it so tabs will be shown only for mintty process. You can use mintty's Alt+F2 shortcut to open new tab and setup shortcut to switch beetween tabs. The only restriction of free version is - max tabs number in one windows set: 3. But is's enough for most of my needs.

11 февр. 2012 г.

Some time ago I needed a webserver for functional testing of my java HTTP client library.I looked for a web server which satisfy following conditions:

1. Embeddable - the main condition.2. Easy to integrate with unit testing frameworks3. Small amount of code and config to setup server4. Quick startup and shutdown.5. Small size of the library.

The first candidate which satisfy main condition is Jetty.It is cool but it doesn't satisfy all other my conditions.

Next candidate is com.sun.net.httpserver.HttpServer which is embedded into JDK 1.6 and higher.It is excellent candidate for my needs, so i decided to use it.I've implemented some kind of abstraction layer over HttpServer to fully satisfify 2-nd and 3-d conditions and as a result i wrote very small library which i called anhttpserver (Another HTTPServer)

//In our example this is function we test,//in your case most probablt it will be some other entityprivateString getResult(String urlString)throwsException{URLConnection connection =(newURL(urlString)).openConnection();InputStream is = connection.getInputStream();String result = IOUtils.toString(is);
is.close();return result;}

More examples of using anhttpserver library you can see in source code of anhttpserver and anhttpclient projects which are open source and released under the MIT license.

Also there is one non usual example of usage of this library - jstreamserver (HTTP Live Streaming for IPad and IPhone).

Here i used anhttpclient not for functional testing but as an HTTP server.For sure i do not recommend to use it in such way - i didn't perform any stability and performance testing, but this example is proof of the viability of anhttpserver.