public class StdHttpResponse extends Object implements HttpResponse
| Constructor and Description |
|---|
StdHttpResponse(org.apache.http.HttpEntity e,
org.apache.http.StatusLine status,
org.apache.http.client.methods.HttpUriRequest httpRequest,
org.apache.http.Header eTagHeader) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
int |
getCode() |
InputStream |
getContent() |
long |
getContentLength() |
String |
getContentType() |
String |
getETag() |
String |
getReason() |
String |
getRequestURI() |
boolean |
isSuccessful() |
static StdHttpResponse |
of(org.apache.http.HttpResponse rsp,
org.apache.http.client.methods.HttpUriRequest httpRequest) |
void |
releaseConnection() |
String |
toString() |
public StdHttpResponse(org.apache.http.HttpEntity e,
org.apache.http.StatusLine status,
org.apache.http.client.methods.HttpUriRequest httpRequest,
org.apache.http.Header eTagHeader)
public static StdHttpResponse of(org.apache.http.HttpResponse rsp, org.apache.http.client.methods.HttpUriRequest httpRequest)
public int getCode()
getCode in interface HttpResponsepublic String getReason()
public String getRequestURI()
getRequestURI in interface HttpResponsepublic long getContentLength()
getContentLength in interface HttpResponsepublic String getContentType()
getContentType in interface HttpResponsepublic InputStream getContent()
getContent in interface HttpResponsepublic String getETag()
getETag in interface HttpResponsepublic boolean isSuccessful()
isSuccessful in interface HttpResponsepublic void releaseConnection()
releaseConnection in interface HttpResponsepublic void abort()
abort in interface HttpResponseCopyright © 2017. All rights reserved.