Package ucar.httpservices
Class HTTPIntercepts.DebugInterceptResponse
- java.lang.Object
-
- ucar.httpservices.HTTPIntercepts.DebugInterceptResponse
-
- All Implemented Interfaces:
org.apache.http.HttpResponseInterceptor
- Enclosing class:
- HTTPIntercepts
public static class HTTPIntercepts.DebugInterceptResponse extends Object implements org.apache.http.HttpResponseInterceptor
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.http.protocol.HttpContext
context
protected List<org.apache.http.Header>
headers
protected HTTPIntercepts.Printer
printer
protected org.apache.http.HttpRequest
request
protected org.apache.http.HttpResponse
response
protected org.apache.http.StatusLine
statusline
-
Constructor Summary
Constructors Constructor Description DebugInterceptResponse()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
org.apache.http.protocol.HttpContext
getContext()
List<org.apache.http.Header>
getHeaders()
List<org.apache.http.Header>
getHeaders(String key)
org.apache.http.HttpRequest
getRequest()
org.apache.http.HttpEntity
getRequestEntity()
org.apache.http.HttpResponse
getResponse()
int
getStatusCode()
void
printHeaders()
void
process(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context)
ucar.httpservices.HTTPIntercepts.InterceptCommon
setPrint(HTTPIntercepts.Printer printer)
-
-
-
Field Detail
-
statusline
protected org.apache.http.StatusLine statusline
-
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
-
printer
protected HTTPIntercepts.Printer printer
-
-
Method Detail
-
getStatusCode
public int getStatusCode()
-
process
public void process(org.apache.http.HttpResponse response, org.apache.http.protocol.HttpContext context) throws org.apache.http.HttpException, IOException
- Specified by:
process
in interfaceorg.apache.http.HttpResponseInterceptor
- Throws:
org.apache.http.HttpException
IOException
-
setPrint
public ucar.httpservices.HTTPIntercepts.InterceptCommon setPrint(HTTPIntercepts.Printer printer)
-
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()
-
getHeaders
public List<org.apache.http.Header> getHeaders()
-
printHeaders
public void printHeaders()
-
-