Package org.eclipse.jetty.http
Class ResourceHttpContent
java.lang.Object
org.eclipse.jetty.http.ResourceHttpContent
- All Implemented Interfaces:
HttpContent
@Deprecated(since="2021-05-27")
public class ResourceHttpContent
extends Object
implements HttpContent
Deprecated.
The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.
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
ConstructorsConstructorDescriptionResourceHttpContent(Resource resource, String contentType) Deprecated.ResourceHttpContent(Resource resource, String contentType, int maxBuffer) Deprecated.ResourceHttpContent(Resource resource, String contentType, int maxBuffer, Map<CompressedContentFormat, HttpContent> precompressedContents) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.Deprecated.Deprecated.longDeprecated.Deprecated.Deprecated.Deprecated.getETag()Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.voidrelease()Deprecated.toString()Deprecated.
-
Constructor Details
-
ResourceHttpContent
Deprecated. -
ResourceHttpContent
Deprecated. -
ResourceHttpContent
public ResourceHttpContent(Resource resource, String contentType, int maxBuffer, Map<CompressedContentFormat, HttpContent> precompressedContents) Deprecated.
-
-
Method Details
-
getContentTypeValue
Deprecated.- Specified by:
getContentTypeValuein interfaceHttpContent
-
getContentType
Deprecated.- Specified by:
getContentTypein interfaceHttpContent
-
getContentEncoding
Deprecated.- Specified by:
getContentEncodingin interfaceHttpContent
-
getContentEncodingValue
Deprecated.- Specified by:
getContentEncodingValuein interfaceHttpContent
-
getCharacterEncoding
Deprecated.- Specified by:
getCharacterEncodingin interfaceHttpContent
-
getMimeType
Deprecated.- Specified by:
getMimeTypein interfaceHttpContent
-
getLastModified
Deprecated.- Specified by:
getLastModifiedin interfaceHttpContent
-
getLastModifiedValue
Deprecated.- Specified by:
getLastModifiedValuein interfaceHttpContent
-
getDirectBuffer
Deprecated.- Specified by:
getDirectBufferin interfaceHttpContent
-
getETag
Deprecated.- Specified by:
getETagin interfaceHttpContent
-
getETagValue
Deprecated.- Specified by:
getETagValuein interfaceHttpContent
-
getIndirectBuffer
Deprecated.- Specified by:
getIndirectBufferin interfaceHttpContent
-
getContentLength
Deprecated.- Specified by:
getContentLengthin interfaceHttpContent
-
getContentLengthValue
public long getContentLengthValue()Deprecated.- Specified by:
getContentLengthValuein interfaceHttpContent
-
getInputStream
Deprecated.- Specified by:
getInputStreamin interfaceHttpContent- Throws:
IOException
-
getReadableByteChannel
Deprecated.- Specified by:
getReadableByteChannelin interfaceHttpContent- Throws:
IOException
-
getResource
Deprecated.- Specified by:
getResourcein interfaceHttpContent
-
release
public void release()Deprecated.- Specified by:
releasein interfaceHttpContent
-
toString
Deprecated. -
getPrecompressedContents
Deprecated.- Specified by:
getPrecompressedContentsin interfaceHttpContent
-