org.eclipse.jetty.http
Class HttpContent.ResourceAsHttpContent
java.lang.Object
org.eclipse.jetty.http.HttpContent.ResourceAsHttpContent
- All Implemented Interfaces:
- HttpContent
- Enclosing interface:
- HttpContent
public static class HttpContent.ResourceAsHttpContent
- extends Object
- implements HttpContent
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpContent.ResourceAsHttpContent
public HttpContent.ResourceAsHttpContent(Resource resource,
Buffer mimeType)
HttpContent.ResourceAsHttpContent
public HttpContent.ResourceAsHttpContent(Resource resource,
Buffer mimeType,
int maxBuffer)
getContentType
public Buffer getContentType()
- Specified by:
getContentType
in interface HttpContent
getLastModified
public Buffer getLastModified()
- Specified by:
getLastModified
in interface HttpContent
getDirectBuffer
public Buffer getDirectBuffer()
- Specified by:
getDirectBuffer
in interface HttpContent
getIndirectBuffer
public Buffer getIndirectBuffer()
- Specified by:
getIndirectBuffer
in interface HttpContent
getContentLength
public long getContentLength()
- Specified by:
getContentLength
in interface HttpContent
getInputStream
public InputStream getInputStream()
throws IOException
- Specified by:
getInputStream
in interface HttpContent
- Throws:
IOException
getResource
public Resource getResource()
- Specified by:
getResource
in interface HttpContent
release
public void release()
- Specified by:
release
in interface HttpContent
Copyright © 1995-2011 Mort Bay Consulting. All Rights Reserved.