public static class HttpContent.ResourceAsHttpContent extends Object implements HttpContent
HttpContent.ResourceAsHttpContent| Constructor and Description |
|---|
HttpContent.ResourceAsHttpContent(Resource resource,
String mimeType) |
HttpContent.ResourceAsHttpContent(Resource resource,
String mimeType,
boolean etag) |
HttpContent.ResourceAsHttpContent(Resource resource,
String mimeType,
int maxBuffer) |
HttpContent.ResourceAsHttpContent(Resource resource,
String mimeType,
int maxBuffer,
boolean etag) |
| Modifier and Type | Method and Description |
|---|---|
long |
getContentLength() |
String |
getContentType() |
ByteBuffer |
getDirectBuffer() |
String |
getETag() |
ByteBuffer |
getIndirectBuffer() |
InputStream |
getInputStream() |
String |
getLastModified() |
ReadableByteChannel |
getReadableByteChannel() |
Resource |
getResource() |
void |
release() |
String |
toString() |
public HttpContent.ResourceAsHttpContent(Resource resource, String mimeType)
public HttpContent.ResourceAsHttpContent(Resource resource, String mimeType, int maxBuffer)
public HttpContent.ResourceAsHttpContent(Resource resource, String mimeType, boolean etag)
public String getContentType()
getContentType in interface HttpContentpublic String getLastModified()
getLastModified in interface HttpContentpublic ByteBuffer getDirectBuffer()
getDirectBuffer in interface HttpContentpublic String getETag()
getETag in interface HttpContentpublic ByteBuffer getIndirectBuffer()
getIndirectBuffer in interface HttpContentpublic long getContentLength()
getContentLength in interface HttpContentpublic InputStream getInputStream() throws IOException
getInputStream in interface HttpContentIOExceptionpublic ReadableByteChannel getReadableByteChannel() throws IOException
getReadableByteChannel in interface HttpContentIOExceptionpublic Resource getResource()
getResource in interface HttpContentpublic void release()
release in interface HttpContentCopyright © 1995-2015 Webtide. All Rights Reserved.