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
|
Constructor Summary |
StdHttpResponse(org.apache.http.HttpEntity e,
org.apache.http.StatusLine status,
org.apache.http.client.methods.HttpUriRequest httpRequest,
org.apache.http.Header eTagHeader)
|
StdHttpResponse
public StdHttpResponse(org.apache.http.HttpEntity e,
org.apache.http.StatusLine status,
org.apache.http.client.methods.HttpUriRequest httpRequest,
org.apache.http.Header eTagHeader)
of
public static StdHttpResponse of(org.apache.http.HttpResponse rsp,
org.apache.http.client.methods.HttpUriRequest 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 long 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
getETag
public String getETag()
- Specified by:
getETag 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 © 2017. All rights reserved.