Package ucar.httpservices
Class HTTPUtil.InterceptResponse
- java.lang.Object
-
- ucar.httpservices.HTTPUtil.InterceptResponse
-
-
Constructor Summary
Constructors Constructor Description InterceptResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()org.apache.http.protocol.HttpContextgetContext()List<org.apache.http.Header>getHeaders(String key)org.apache.http.HttpRequestgetRequest()org.apache.http.HttpEntitygetRequestEntity()org.apache.http.HttpResponsegetResponse()voidprocess(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)ucar.httpservices.HTTPUtil.InterceptCommonsetPrint(boolean tf)
-
-
-
Field Detail
-
context
protected org.apache.http.protocol.HttpContext context
-
headers
protected List<org.apache.http.Header> headers
-
request
protected org.apache.http.HttpRequest request
-
response
protected org.apache.http.HttpResponse response
-
printheaders
protected boolean printheaders
-
-
Method Detail
-
process
public void process(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException, IOException- Specified by:
processin interfaceorg.apache.http.HttpResponseInterceptor- Throws:
org.apache.http.HttpExceptionIOException
-
setPrint
public ucar.httpservices.HTTPUtil.InterceptCommon setPrint(boolean tf)
-
clear
public void clear()
-
getRequest
public org.apache.http.HttpRequest getRequest()
-
getResponse
public org.apache.http.HttpResponse getResponse()
-
getContext
public org.apache.http.protocol.HttpContext getContext()
-
getRequestEntity
public org.apache.http.HttpEntity getRequestEntity()
-
-