use of org.apache.http.protocol.ResponseContent in project camel by apache.
the class HttpAuthenticationTest method getBasicHttpProcessor.
@Override
protected HttpProcessor getBasicHttpProcessor() {
List<HttpRequestInterceptor> requestInterceptors = new ArrayList<HttpRequestInterceptor>();
requestInterceptors.add(new RequestBasicAuth());
List<HttpResponseInterceptor> responseInterceptors = new ArrayList<HttpResponseInterceptor>();
responseInterceptors.add(new ResponseContent());
responseInterceptors.add(new ResponseBasicUnauthorized());
ImmutableHttpProcessor httpproc = new ImmutableHttpProcessor(requestInterceptors, responseInterceptors);
return httpproc;
}
use of org.apache.http.protocol.ResponseContent in project camel by apache.
the class HttpProxyServerTest method getBasicHttpProcessor.
@Override
protected HttpProcessor getBasicHttpProcessor() {
List<HttpRequestInterceptor> requestInterceptors = new ArrayList<HttpRequestInterceptor>();
requestInterceptors.add(new RequestProxyBasicAuth());
List<HttpResponseInterceptor> responseInterceptors = new ArrayList<HttpResponseInterceptor>();
responseInterceptors.add(new ResponseContent());
responseInterceptors.add(new ResponseProxyBasicUnauthorized());
ImmutableHttpProcessor httpproc = new ImmutableHttpProcessor(requestInterceptors, responseInterceptors);
return httpproc;
}
use of org.apache.http.protocol.ResponseContent in project camel by apache.
the class HttpsAuthenticationTest method getBasicHttpProcessor.
@Override
protected HttpProcessor getBasicHttpProcessor() {
List<HttpRequestInterceptor> requestInterceptors = new ArrayList<HttpRequestInterceptor>();
requestInterceptors.add(new RequestBasicAuth());
List<HttpResponseInterceptor> responseInterceptors = new ArrayList<HttpResponseInterceptor>();
responseInterceptors.add(new ResponseContent());
responseInterceptors.add(new ResponseBasicUnauthorized());
ImmutableHttpProcessor httpproc = new ImmutableHttpProcessor(requestInterceptors, responseInterceptors);
return httpproc;
}
Aggregations