use of org.apache.camel.component.http4.handler.BasicValidationHandler in project camel by apache.
the class HttpProducerConnectionCloseTest method setUp.
@Before
@Override
public void setUp() throws Exception {
localServer = ServerBootstrap.bootstrap().setHttpProcessor(getBasicHttpProcessor()).setConnectionReuseStrategy(getConnectionReuseStrategy()).setResponseFactory(getHttpResponseFactory()).setExpectationVerifier(getHttpExpectationVerifier()).setSslContext(getSSLContext()).registerHandler("/myget", new BasicValidationHandler("GET", null, null, getExpectedContent())).create();
localServer.start();
super.setUp();
}
use of org.apache.camel.component.http4.handler.BasicValidationHandler in project camel by apache.
the class HttpNoConnectionRedeliveryTest method setUp.
@Before
@Override
public void setUp() throws Exception {
localServer = ServerBootstrap.bootstrap().setHttpProcessor(getBasicHttpProcessor()).setConnectionReuseStrategy(getConnectionReuseStrategy()).setResponseFactory(getHttpResponseFactory()).setExpectationVerifier(getHttpExpectationVerifier()).setSslContext(getSSLContext()).registerHandler("/search", new BasicValidationHandler("GET", null, null, getExpectedContent())).create();
localServer.start();
super.setUp();
}
use of org.apache.camel.component.http4.handler.BasicValidationHandler in project camel by apache.
the class HttpMethodsTest method setUp.
@Before
@Override
public void setUp() throws Exception {
localServer = ServerBootstrap.bootstrap().setHttpProcessor(getBasicHttpProcessor()).setConnectionReuseStrategy(getConnectionReuseStrategy()).setResponseFactory(getHttpResponseFactory()).setExpectationVerifier(getHttpExpectationVerifier()).setSslContext(getSSLContext()).registerHandler("/get", new BasicValidationHandler("GET", null, null, getExpectedContent())).registerHandler("/patch", new BasicValidationHandler("PATCH", null, null, getExpectedContent())).registerHandler("/patch1", new BasicValidationHandler("PATCH", null, "rocks camel?", getExpectedContent())).registerHandler("/post", new BasicValidationHandler("POST", null, null, getExpectedContent())).registerHandler("/post1", new BasicValidationHandler("POST", null, "rocks camel?", getExpectedContent())).registerHandler("/put", new BasicValidationHandler("PUT", null, null, getExpectedContent())).registerHandler("/trace", new BasicValidationHandler("TRACE", null, null, getExpectedContent())).registerHandler("/options", new BasicValidationHandler("OPTIONS", null, null, getExpectedContent())).registerHandler("/delete", new BasicValidationHandler("DELETE", null, null, getExpectedContent())).registerHandler("/delete1", new BasicValidationHandler("DELETE", null, null, getExpectedContent())).registerHandler("/head", new BasicValidationHandler("HEAD", null, null, getExpectedContent())).create();
localServer.start();
super.setUp();
}
Aggregations