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() |
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 HttpContent
public String getLastModified()
getLastModified
in interface HttpContent
public ByteBuffer getDirectBuffer()
getDirectBuffer
in interface HttpContent
public String getETag()
getETag
in interface HttpContent
public ByteBuffer getIndirectBuffer()
getIndirectBuffer
in interface HttpContent
public long getContentLength()
getContentLength
in interface HttpContent
public InputStream getInputStream() throws IOException
getInputStream
in interface HttpContent
IOException
public ReadableByteChannel getReadableByteChannel() throws IOException
getReadableByteChannel
in interface HttpContent
IOException
public Resource getResource()
getResource
in interface HttpContent
public void release()
release
in interface HttpContent
Copyright © 1995-2014 Mort Bay Consulting. All Rights Reserved.