Search in sources :

Example 6 with BasicValidationHandler

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

the class HttpThrowExceptionOnFailureTest 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())).create();
    localServer.start();
    super.setUp();
}
Also used : BasicValidationHandler(org.apache.camel.component.http4.handler.BasicValidationHandler) Before(org.junit.Before)

Example 7 with BasicValidationHandler

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

the class HttpsGetTest method setUp.

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

Example 8 with BasicValidationHandler

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

the class HttpProducerSelectMethodTest 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())).registerHandler("/mypost", new BasicValidationHandler("POST", null, null, getExpectedContent())).registerHandler("/myget2", new BasicValidationHandler("GET", "q=Camel", null, getExpectedContent())).create();
    localServer.start();
    super.setUp();
}
Also used : BasicValidationHandler(org.apache.camel.component.http4.handler.BasicValidationHandler) Before(org.junit.Before)

Example 9 with BasicValidationHandler

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

the class HttpDisableStreamCacheTest method setUp.

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

Example 10 with BasicValidationHandler

use of org.apache.camel.component.http4.handler.BasicValidationHandler 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

BasicValidationHandler (org.apache.camel.component.http4.handler.BasicValidationHandler)18 Before (org.junit.Before)18 HashMap (java.util.HashMap)1 AuthenticationValidationHandler (org.apache.camel.component.http4.handler.AuthenticationValidationHandler)1 BasicRawQueryValidationHandler (org.apache.camel.component.http4.handler.BasicRawQueryValidationHandler)1 HeaderValidationHandler (org.apache.camel.component.http4.handler.HeaderValidationHandler)1