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,
int maxBuffer) |
Modifier and Type | Method and Description |
---|---|
long |
getContentLength() |
String |
getContentType() |
ByteBuffer |
getDirectBuffer() |
ByteBuffer |
getIndirectBuffer() |
InputStream |
getInputStream() |
String |
getLastModified() |
Resource |
getResource() |
void |
release() |
public HttpContent.ResourceAsHttpContent(Resource resource, String mimeType)
public String getContentType()
getContentType
in interface HttpContent
public String getLastModified()
getLastModified
in interface HttpContent
public ByteBuffer getDirectBuffer()
getDirectBuffer
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 Resource getResource()
getResource
in interface HttpContent
public void release()
release
in interface HttpContent
Copyright © 1995-2012 Mort Bay Consulting. All Rights Reserved.