Search in sources :

Example 1 with RequestTargetAuthentication

use of org.apache.http.client.protocol.RequestTargetAuthentication in project robovm by robovm.

the class DefaultHttpClient method createHttpProcessor.

@Override
protected BasicHttpProcessor createHttpProcessor() {
    BasicHttpProcessor httpproc = new BasicHttpProcessor();
    httpproc.addInterceptor(new RequestDefaultHeaders());
    // Required protocol interceptors
    httpproc.addInterceptor(new RequestContent());
    httpproc.addInterceptor(new RequestTargetHost());
    // Recommended protocol interceptors
    httpproc.addInterceptor(new RequestConnControl());
    httpproc.addInterceptor(new RequestUserAgent());
    httpproc.addInterceptor(new RequestExpectContinue());
    // HTTP state management interceptors
    httpproc.addInterceptor(new RequestAddCookies());
    httpproc.addInterceptor(new ResponseProcessCookies());
    // HTTP authentication interceptors
    httpproc.addInterceptor(new RequestTargetAuthentication());
    httpproc.addInterceptor(new RequestProxyAuthentication());
    return httpproc;
}
Also used : RequestAddCookies(org.apache.http.client.protocol.RequestAddCookies) RequestContent(org.apache.http.protocol.RequestContent) RequestTargetHost(org.apache.http.protocol.RequestTargetHost) RequestConnControl(org.apache.http.protocol.RequestConnControl) RequestProxyAuthentication(org.apache.http.client.protocol.RequestProxyAuthentication) RequestExpectContinue(org.apache.http.protocol.RequestExpectContinue) RequestUserAgent(org.apache.http.protocol.RequestUserAgent) RequestDefaultHeaders(org.apache.http.client.protocol.RequestDefaultHeaders) RequestTargetAuthentication(org.apache.http.client.protocol.RequestTargetAuthentication) ResponseProcessCookies(org.apache.http.client.protocol.ResponseProcessCookies) BasicHttpProcessor(org.apache.http.protocol.BasicHttpProcessor)

Example 2 with RequestTargetAuthentication

use of org.apache.http.client.protocol.RequestTargetAuthentication in project XobotOS by xamarin.

the class DefaultHttpClient method createHttpProcessor.

@Override
protected BasicHttpProcessor createHttpProcessor() {
    BasicHttpProcessor httpproc = new BasicHttpProcessor();
    httpproc.addInterceptor(new RequestDefaultHeaders());
    // Required protocol interceptors
    httpproc.addInterceptor(new RequestContent());
    httpproc.addInterceptor(new RequestTargetHost());
    // Recommended protocol interceptors
    httpproc.addInterceptor(new RequestConnControl());
    httpproc.addInterceptor(new RequestUserAgent());
    httpproc.addInterceptor(new RequestExpectContinue());
    // HTTP state management interceptors
    httpproc.addInterceptor(new RequestAddCookies());
    httpproc.addInterceptor(new ResponseProcessCookies());
    // HTTP authentication interceptors
    httpproc.addInterceptor(new RequestTargetAuthentication());
    httpproc.addInterceptor(new RequestProxyAuthentication());
    return httpproc;
}
Also used : RequestAddCookies(org.apache.http.client.protocol.RequestAddCookies) RequestContent(org.apache.http.protocol.RequestContent) RequestTargetHost(org.apache.http.protocol.RequestTargetHost) RequestConnControl(org.apache.http.protocol.RequestConnControl) RequestProxyAuthentication(org.apache.http.client.protocol.RequestProxyAuthentication) RequestExpectContinue(org.apache.http.protocol.RequestExpectContinue) RequestUserAgent(org.apache.http.protocol.RequestUserAgent) RequestDefaultHeaders(org.apache.http.client.protocol.RequestDefaultHeaders) RequestTargetAuthentication(org.apache.http.client.protocol.RequestTargetAuthentication) ResponseProcessCookies(org.apache.http.client.protocol.ResponseProcessCookies) BasicHttpProcessor(org.apache.http.protocol.BasicHttpProcessor)

Example 3 with RequestTargetAuthentication

use of org.apache.http.client.protocol.RequestTargetAuthentication in project platform_external_apache-http by android.

the class DefaultHttpClient method createHttpProcessor.

@Override
protected BasicHttpProcessor createHttpProcessor() {
    BasicHttpProcessor httpproc = new BasicHttpProcessor();
    httpproc.addInterceptor(new RequestDefaultHeaders());
    // Required protocol interceptors
    httpproc.addInterceptor(new RequestContent());
    httpproc.addInterceptor(new RequestTargetHost());
    // Recommended protocol interceptors
    httpproc.addInterceptor(new RequestConnControl());
    httpproc.addInterceptor(new RequestUserAgent());
    httpproc.addInterceptor(new RequestExpectContinue());
    // HTTP state management interceptors
    httpproc.addInterceptor(new RequestAddCookies());
    httpproc.addInterceptor(new ResponseProcessCookies());
    // HTTP authentication interceptors
    httpproc.addInterceptor(new RequestTargetAuthentication());
    httpproc.addInterceptor(new RequestProxyAuthentication());
    return httpproc;
}
Also used : RequestAddCookies(org.apache.http.client.protocol.RequestAddCookies) RequestContent(org.apache.http.protocol.RequestContent) RequestTargetHost(org.apache.http.protocol.RequestTargetHost) RequestConnControl(org.apache.http.protocol.RequestConnControl) RequestProxyAuthentication(org.apache.http.client.protocol.RequestProxyAuthentication) RequestExpectContinue(org.apache.http.protocol.RequestExpectContinue) RequestUserAgent(org.apache.http.protocol.RequestUserAgent) RequestDefaultHeaders(org.apache.http.client.protocol.RequestDefaultHeaders) RequestTargetAuthentication(org.apache.http.client.protocol.RequestTargetAuthentication) ResponseProcessCookies(org.apache.http.client.protocol.ResponseProcessCookies) BasicHttpProcessor(org.apache.http.protocol.BasicHttpProcessor)

Aggregations

RequestAddCookies (org.apache.http.client.protocol.RequestAddCookies)3 RequestDefaultHeaders (org.apache.http.client.protocol.RequestDefaultHeaders)3 RequestProxyAuthentication (org.apache.http.client.protocol.RequestProxyAuthentication)3 RequestTargetAuthentication (org.apache.http.client.protocol.RequestTargetAuthentication)3 ResponseProcessCookies (org.apache.http.client.protocol.ResponseProcessCookies)3 BasicHttpProcessor (org.apache.http.protocol.BasicHttpProcessor)3 RequestConnControl (org.apache.http.protocol.RequestConnControl)3 RequestContent (org.apache.http.protocol.RequestContent)3 RequestExpectContinue (org.apache.http.protocol.RequestExpectContinue)3 RequestTargetHost (org.apache.http.protocol.RequestTargetHost)3 RequestUserAgent (org.apache.http.protocol.RequestUserAgent)3