org.ektorp.http
Class StdHttpResponse
java.lang.Object
org.ektorp.http.StdHttpResponse
- All Implemented Interfaces:
- HttpResponse
public class StdHttpResponse
- extends Object
- implements HttpResponse
- Author:
- henriklundgren
of
public static StdHttpResponse of(org.apache.http.HttpResponse rsp,
org.apache.http.client.methods.HttpRequestBase httpRequest)
getCode
public int getCode()
- Specified by:
getCode
in interface HttpResponse
getReason
public String getReason()
getRequestURI
public String getRequestURI()
- Specified by:
getRequestURI
in interface HttpResponse
getContentLength
public int getContentLength()
- Specified by:
getContentLength
in interface HttpResponse
getContentType
public String getContentType()
- Specified by:
getContentType
in interface HttpResponse
getContent
public InputStream getContent()
- Specified by:
getContent
in interface HttpResponse
isSuccessful
public boolean isSuccessful()
- Specified by:
isSuccessful
in interface HttpResponse
releaseConnection
public void releaseConnection()
- Specified by:
releaseConnection
in interface HttpResponse
abort
public void abort()
- Specified by:
abort
in interface HttpResponse
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2011. All Rights Reserved.