Top Description Fields Constructors Methods
org.apache.http.client.protocol

public Class ResponseProcessCookies

extends Object
implements HttpResponseInterceptor
Class Inheritance
All Implemented Interfaces
org.apache.http.HttpResponseInterceptor
Annotations
@Contract
threading:IMMUTABLE
Imports
java.io.IOException, java.util.List, org.apache.commons.logging.Log, .LogFactory, org.apache.http.Header, .HeaderIterator, .HttpException, .HttpResponse, .HttpResponseInterceptor, org.apache.http.annotation.Contract, .ThreadingBehavior, org.apache.http.client.CookieStore, org.apache.http.cookie.Cookie, .CookieOrigin, .CookieSpec, .MalformedCookieException, .SM, org.apache.http.protocol.HttpContext, org.apache.http.util.Args

Response interceptor that populates the current CookieStore with data contained in response cookies received in the given the HTTP response.
Since
4.0

Field Summary

Modifier and TypeField and Description
private final Log

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static String
formatCooke(final Cookie cookie)

public void
process(final HttpResponse
the response to postprocess
response
,
final HttpContext
the context for the request
context
)

Implements org.apache.http.HttpResponseInterceptor.process.

Processes a response.
private void
processCookies(final HeaderIterator iterator, final CookieSpec cookieSpec, final CookieOrigin cookieOrigin, final CookieStore cookieStore)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

logback to summary
private final Log log

Constructor Detail

ResponseProcessCookiesback to summary
public ResponseProcessCookies()

Method Detail

formatCookeback to summary
private static String formatCooke(final Cookie cookie)
processback to summary
public void process(final HttpResponse response, final HttpContext context) throws HttpException, IOException

Implements org.apache.http.HttpResponseInterceptor.process.

Doc from org.apache.http.HttpResponseInterceptor.process.

Processes a response. On the server side, this step is performed before the response is sent to the client. On the client side, this step is performed on incoming messages before the message body is evaluated.

Parameters
response:HttpResponse

the response to postprocess

context:HttpContext

the context for the request

Annotations
@Override
Exceptions
HttpException:
in case of an HTTP protocol violation
IOException:
in case of an I/O error
processCookiesback to summary
private void processCookies(final HeaderIterator iterator, final CookieSpec cookieSpec, final CookieOrigin cookieOrigin, final CookieStore cookieStore)