Sha256: acfb22c1c546b0f3a7804732e6a249169d9f081a84e02bd3b37941e19406f93c

Contents?: true

Size: 913 Bytes

Versions: 4

Compression:

Stored size: 913 Bytes

Contents

import org.mortbay.jetty.Server;
import org.mortbay.jetty.handler.DebugHandler;
import org.mortbay.jetty.servlet.Context;
import org.mortbay.jetty.servlet.FilterHolder;
import org.mortbay.jetty.servlet.ServletHolder;
import org.mortbay.servlet.jetty.IncludableGzipFilter;

import com.acme.Dump;


public class DumpServer
{
    public static void main(String[] args)
        throws Exception
    {
        Server server = new Server(8080);
        DebugHandler debug = new DebugHandler();
        debug.setOutputStream(System.err);
        server.setHandler(debug);
        
        Context context = new Context(debug,"/",Context.SESSIONS);
        FilterHolder gzip=context.addFilter(IncludableGzipFilter.class,"/*",0);
        gzip.setInitParameter("uncheckedPrintWriter","true");
        context.addServlet(new ServletHolder(new Dump()), "/*");
        
        server.start();
        server.join();
    }

}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
miso-java-0.1.5 jetty/examples/test-webapp/src/test/java/DumpServer.java
miso-java-0.1.4 jetty/examples/test-webapp/src/test/java/DumpServer.java
miso-java-0.1.3 jetty/examples/test-webapp/src/test/java/DumpServer.java
miso-java-0.1.2 jetty/examples/test-webapp/src/test/java/DumpServer.java