Search in sources :

Example 1 with BasicRawQueryValidationHandler

use of org.apache.camel.component.http4.handler.BasicRawQueryValidationHandler in project camel by apache.

the class HttpBridgeEndpointTest method setUp.

@Before
@Override
public void setUp() throws Exception {
    localServer = ServerBootstrap.bootstrap().setHttpProcessor(getBasicHttpProcessor()).setConnectionReuseStrategy(getConnectionReuseStrategy()).setResponseFactory(getHttpResponseFactory()).setExpectationVerifier(getHttpExpectationVerifier()).setSslContext(getSSLContext()).registerHandler("/", new BasicValidationHandler("GET", null, null, getExpectedContent())).registerHandler("/query", new BasicRawQueryValidationHandler("GET", "x=%3B", null, getExpectedContent())).create();
    localServer.start();
    super.setUp();
}
Also used : BasicValidationHandler(org.apache.camel.component.http4.handler.BasicValidationHandler) BasicRawQueryValidationHandler(org.apache.camel.component.http4.handler.BasicRawQueryValidationHandler) Before(org.junit.Before)

Aggregations

BasicRawQueryValidationHandler (org.apache.camel.component.http4.handler.BasicRawQueryValidationHandler)1 BasicValidationHandler (org.apache.camel.component.http4.handler.BasicValidationHandler)1 Before (org.junit.Before)1