Search in sources :

Example 1 with HttpHeaderFilterStrategy

use of org.apache.camel.http.common.HttpHeaderFilterStrategy in project camel by apache.

the class BaseJettyTest method allowNullHeaders.

protected void allowNullHeaders() {
    JettyHttpComponent jetty = (JettyHttpComponent) context.getComponent("jetty");
    HttpHeaderFilterStrategy filterStrat = new HttpHeaderFilterStrategy();
    filterStrat.setAllowNullValues(true);
    jetty.setHeaderFilterStrategy(filterStrat);
}
Also used : HttpHeaderFilterStrategy(org.apache.camel.http.common.HttpHeaderFilterStrategy)

Example 2 with HttpHeaderFilterStrategy

use of org.apache.camel.http.common.HttpHeaderFilterStrategy in project camel by apache.

the class HttpHeaderFilterStrategyTest method setUp.

@Before
public void setUp() {
    filter = new HttpHeaderFilterStrategy();
    exchange = new DefaultExchange(new DefaultCamelContext());
}
Also used : HttpHeaderFilterStrategy(org.apache.camel.http.common.HttpHeaderFilterStrategy) DefaultExchange(org.apache.camel.impl.DefaultExchange) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) Before(org.junit.Before)

Example 3 with HttpHeaderFilterStrategy

use of org.apache.camel.http.common.HttpHeaderFilterStrategy in project camel by apache.

the class HttpHeaderFilterStrategyTest method setUp.

@Before
public void setUp() {
    filter = new HttpHeaderFilterStrategy();
    exchange = new DefaultExchange(new DefaultCamelContext());
}
Also used : HttpHeaderFilterStrategy(org.apache.camel.http.common.HttpHeaderFilterStrategy) DefaultExchange(org.apache.camel.impl.DefaultExchange) DefaultCamelContext(org.apache.camel.impl.DefaultCamelContext) Before(org.junit.Before)

Aggregations

HttpHeaderFilterStrategy (org.apache.camel.http.common.HttpHeaderFilterStrategy)3 DefaultCamelContext (org.apache.camel.impl.DefaultCamelContext)2 DefaultExchange (org.apache.camel.impl.DefaultExchange)2 Before (org.junit.Before)2