Module net.anwiba.commons.http
Package net.anwiba.commons.http
Class CachingHttpRequestExecutor.StaticResponse
java.lang.Object
net.anwiba.commons.http.CachingHttpRequestExecutor.StaticResponse
- All Implemented Interfaces:
Closeable,AutoCloseable,IResponse
- Enclosing class:
- CachingHttpRequestExecutor
-
Constructor Summary
ConstructorsConstructorDescriptionStaticResponse(IResourceReferenceHandler resourceReferenceHandler, IBlock<RuntimeException> abortBlock, String url, IResourceReference resourceReference, int statusCode, String statusTest) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.anwiba.commons.http.IResponse
cacheControl, expires, isStatusCode2xx, pragma
-
Constructor Details
-
StaticResponse
public StaticResponse(IResourceReferenceHandler resourceReferenceHandler, IBlock<RuntimeException> abortBlock, String url, IResourceReference resourceReference, int statusCode, String statusTest)
-
-
Method Details
-
getResourceReference
-
getUri
-
getStatusText
- Specified by:
getStatusTextin interfaceIResponse
-
getStatusCode
public int getStatusCode()- Specified by:
getStatusCodein interfaceIResponse
-
getInputStream
- Specified by:
getInputStreamin interfaceIResponse- Throws:
IOException
-
getContentType
- Specified by:
getContentTypein interfaceIResponse
-
getContentLength
public long getContentLength()- Specified by:
getContentLengthin interfaceIResponse
-
getContentEncoding
- Specified by:
getContentEncodingin interfaceIResponse
-
getBody
- Specified by:
getBodyin interfaceIResponse- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceIResponse- Throws:
IOException
-
abort
public void abort()
-