org.ektorp.http
Class StdHttpResponse

java.lang.Object
  extended by org.ektorp.http.StdHttpResponse
All Implemented Interfaces:
HttpResponse

public class StdHttpResponse
extends Object
implements HttpResponse

Author:
henriklundgren

Method Summary
 void abort()
           
 int getCode()
           
 InputStream getContent()
           
 int getContentLength()
           
 String getContentType()
           
 String getReason()
           
 String getRequestURI()
           
 boolean isSuccessful()
           
static StdHttpResponse of(org.apache.http.HttpResponse rsp, org.apache.http.client.methods.HttpRequestBase httpRequest)
           
 void releaseConnection()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

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.