org.ektorp.http
Class StdHttpResponse

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

public class StdHttpResponse
extends java.lang.Object
implements HttpResponse

Author:
henriklundgren

Method Summary
 int getCode()
           
 java.io.InputStream getContent()
           
 int getContentLength()
           
 java.lang.String getContentType()
           
 java.lang.String getReason()
           
 java.lang.String getRequestURI()
           
 boolean isSuccessful()
           
static StdHttpResponse of(org.apache.http.HttpResponse rsp, java.lang.String requestURI)
           
 void releaseConnection()
           
 java.lang.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,
                                 java.lang.String requestURI)

getCode

public int getCode()
Specified by:
getCode in interface HttpResponse

getReason

public java.lang.String getReason()

getRequestURI

public java.lang.String getRequestURI()
Specified by:
getRequestURI in interface HttpResponse

getContentLength

public int getContentLength()
Specified by:
getContentLength in interface HttpResponse

getContentType

public java.lang.String getContentType()
Specified by:
getContentType in interface HttpResponse

getContent

public java.io.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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.