Search in sources :

Example 1 with BasicValidationHandler

use of org.apache.camel.component.http.handler.BasicValidationHandler in project camel by apache.

the class CamelComponentVerifierTest method setUp.

@Before
@Override
public void setUp() throws Exception {
    localServer = new Server(PORT);
    localServer.setHandler(handlers(contextHandler("/basic", new BasicValidationHandler("GET", null, null, getExpectedContent()))));
    localServer.start();
    super.setUp();
}
Also used : Server(org.eclipse.jetty.server.Server) BasicValidationHandler(org.apache.camel.component.http.handler.BasicValidationHandler) Before(org.junit.Before)

Example 2 with BasicValidationHandler

use of org.apache.camel.component.http.handler.BasicValidationHandler in project camel by apache.

the class HttpBridgeEndpointTest method setUp.

@Before
@Override
public void setUp() throws Exception {
    localServer = new Server(PORT);
    localServer.setHandler(handlers(contextHandler("/", new BasicValidationHandler("GET", null, null, getExpectedContent())), contextHandler("/query", new BasicRawQueryValidationHandler("GET", "x=%3B", null, getExpectedContent()))));
    localServer.start();
    super.setUp();
}
Also used : Server(org.eclipse.jetty.server.Server) BasicValidationHandler(org.apache.camel.component.http.handler.BasicValidationHandler) BasicRawQueryValidationHandler(org.apache.camel.component.http.handler.BasicRawQueryValidationHandler) Before(org.junit.Before)

Aggregations

BasicValidationHandler (org.apache.camel.component.http.handler.BasicValidationHandler)2 Server (org.eclipse.jetty.server.Server)2 Before (org.junit.Before)2 BasicRawQueryValidationHandler (org.apache.camel.component.http.handler.BasicRawQueryValidationHandler)1