public class StdHttpResponse extends Object implements HttpResponse
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 static StdHttpResponse of(org.apache.http.HttpResponse rsp, org.apache.http.client.methods.HttpUriRequest httpRequest)
public int getCode()
getCode
in interface HttpResponse
public String getReason()
public String getRequestURI()
getRequestURI
in interface HttpResponse
public long getContentLength()
getContentLength
in interface HttpResponse
public String getContentType()
getContentType
in interface HttpResponse
public InputStream getContent()
getContent
in interface HttpResponse
public String getETag()
getETag
in interface HttpResponse
public boolean isSuccessful()
isSuccessful
in interface HttpResponse
public void releaseConnection()
releaseConnection
in interface HttpResponse
public void abort()
abort
in interface HttpResponse
Copyright © 2013. All Rights Reserved.