Package org.eclipse.jetty.http
Class ResourceHttpContent
java.lang.Object
org.eclipse.jetty.http.ResourceHttpContent
- All Implemented Interfaces:
HttpContent
HttpContent created from a
Resource
.
The HttpContent is used to server static content that is not cached. So fields and values are only generated as need be an not kept for reuse
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.jetty.http.HttpContent
HttpContent.ContentFactory
-
Constructor Summary
ConstructorDescriptionResourceHttpContent
(Resource resource, String contentType) ResourceHttpContent
(Resource resource, String contentType, int maxBuffer) ResourceHttpContent
(Resource resource, String contentType, int maxBuffer, Map<CompressedContentFormat, HttpContent> precompressedContents) -
Method Summary
-
Constructor Details
-
ResourceHttpContent
-
ResourceHttpContent
-
ResourceHttpContent
public ResourceHttpContent(Resource resource, String contentType, int maxBuffer, Map<CompressedContentFormat, HttpContent> precompressedContents)
-
-
Method Details
-
getContentTypeValue
- Specified by:
getContentTypeValue
in interfaceHttpContent
-
getContentType
- Specified by:
getContentType
in interfaceHttpContent
-
getContentEncoding
- Specified by:
getContentEncoding
in interfaceHttpContent
-
getContentEncodingValue
- Specified by:
getContentEncodingValue
in interfaceHttpContent
-
getCharacterEncoding
- Specified by:
getCharacterEncoding
in interfaceHttpContent
-
getMimeType
- Specified by:
getMimeType
in interfaceHttpContent
-
getLastModified
- Specified by:
getLastModified
in interfaceHttpContent
-
getLastModifiedValue
- Specified by:
getLastModifiedValue
in interfaceHttpContent
-
getDirectBuffer
- Specified by:
getDirectBuffer
in interfaceHttpContent
-
getETag
- Specified by:
getETag
in interfaceHttpContent
-
getETagValue
- Specified by:
getETagValue
in interfaceHttpContent
-
getIndirectBuffer
- Specified by:
getIndirectBuffer
in interfaceHttpContent
-
getContentLength
- Specified by:
getContentLength
in interfaceHttpContent
-
getContentLengthValue
public long getContentLengthValue()- Specified by:
getContentLengthValue
in interfaceHttpContent
-
getInputStream
- Specified by:
getInputStream
in interfaceHttpContent
- Throws:
IOException
-
getReadableByteChannel
- Specified by:
getReadableByteChannel
in interfaceHttpContent
- Throws:
IOException
-
getResource
- Specified by:
getResource
in interfaceHttpContent
-
release
public void release()- Specified by:
release
in interfaceHttpContent
-
toString
-
getPrecompressedContents
- Specified by:
getPrecompressedContents
in interfaceHttpContent
-