com.github.ignition.support.http.cache
Class CachedHttpResponse
java.lang.Object
   com.github.ignition.support.http.cache.CachedHttpResponse
com.github.ignition.support.http.cache.CachedHttpResponse
- All Implemented Interfaces: 
- IgnitedHttpResponse
- public class CachedHttpResponse 
- extends Object- implements IgnitedHttpResponse
A response proxy returning data from a HttpResponseCache
- Author:
- Matthias Kaeppler
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
CachedHttpResponse
public CachedHttpResponse(CachedHttpResponse.ResponseData cachedData)
getHeader
public String getHeader(String header)
- 
- Specified by:
- getHeaderin interface- IgnitedHttpResponse
 
- 
 
getResponseBody
public InputStream getResponseBody()
                            throws IOException
- 
- Specified by:
- getResponseBodyin interface- IgnitedHttpResponse
 
- 
- Throws:
- IOException
 
getResponseBodyAsBytes
public byte[] getResponseBodyAsBytes()
                              throws IOException
- 
- Specified by:
- getResponseBodyAsBytesin interface- IgnitedHttpResponse
 
- 
- Throws:
- IOException
 
getResponseBodyAsString
public String getResponseBodyAsString()
                               throws IOException
- 
- Specified by:
- getResponseBodyAsStringin interface- IgnitedHttpResponse
 
- 
- Throws:
- IOException
 
getStatusCode
public int getStatusCode()
- 
- Specified by:
- getStatusCodein interface- IgnitedHttpResponse
 
- 
 
unwrap
public org.apache.http.HttpResponse unwrap()
- 
- Specified by:
- unwrapin interface- IgnitedHttpResponse
 
- 
 
Copyright © 2012. All Rights Reserved.