Search in sources :

Example 1 with HttpContext

use of org.mortbay.http.HttpContext in project wso2-axis2-transports by wso2.

the class JettyServer method setUp.

@Setup
@SuppressWarnings("unused")
private void setUp(HttpTestEnvironment env) throws Exception {
    server = new Server();
    SocketListener listener = new SocketListener();
    listener.setPort(env.getServerPort());
    server.addListener(listener);
    context = new HttpContext(server, Channel.CONTEXT_PATH + "/*");
    server.start();
}
Also used : SocketListener(org.mortbay.http.SocketListener) Server(org.mortbay.jetty.Server) HttpContext(org.mortbay.http.HttpContext) Setup(org.apache.axis2.transport.testkit.tests.Setup)

Aggregations

Setup (org.apache.axis2.transport.testkit.tests.Setup)1 HttpContext (org.mortbay.http.HttpContext)1 SocketListener (org.mortbay.http.SocketListener)1 Server (org.mortbay.jetty.Server)1