com.github.ignition.support.http
Class IgnitedHttpResponseImpl

java.lang.Object
  extended by com.github.ignition.support.http.IgnitedHttpResponseImpl
All Implemented Interfaces:
IgnitedHttpResponse

public class IgnitedHttpResponseImpl
extends Object
implements IgnitedHttpResponse


Constructor Summary
IgnitedHttpResponseImpl(org.apache.http.HttpResponse response)
           
 
Method Summary
 String getHeader(String header)
           
 InputStream getResponseBody()
           
 byte[] getResponseBodyAsBytes()
           
 String getResponseBodyAsString()
           
 int getStatusCode()
           
 org.apache.http.HttpResponse unwrap()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IgnitedHttpResponseImpl

public IgnitedHttpResponseImpl(org.apache.http.HttpResponse response)
                        throws IOException
Throws:
IOException
Method Detail

unwrap

public org.apache.http.HttpResponse unwrap()
Specified by:
unwrap in interface IgnitedHttpResponse

getResponseBody

public InputStream getResponseBody()
                            throws IOException
Specified by:
getResponseBody in interface IgnitedHttpResponse
Throws:
IOException

getResponseBodyAsBytes

public byte[] getResponseBodyAsBytes()
                              throws IOException
Specified by:
getResponseBodyAsBytes in interface IgnitedHttpResponse
Throws:
IOException

getResponseBodyAsString

public String getResponseBodyAsString()
                               throws IOException
Specified by:
getResponseBodyAsString in interface IgnitedHttpResponse
Throws:
IOException

getStatusCode

public int getStatusCode()
Specified by:
getStatusCode in interface IgnitedHttpResponse

getHeader

public String getHeader(String header)
Specified by:
getHeader in interface IgnitedHttpResponse


Copyright © 2012. All Rights Reserved.