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 java.lang.Object implements HttpContent
Deprecated.The Eclipse Jetty and Apache Felix Http Jetty packages are no longer supported.HttpContent created from aResource
.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
Constructors Constructor Description ResourceHttpContent(Resource resource, java.lang.String contentType)
Deprecated.ResourceHttpContent(Resource resource, java.lang.String contentType, int maxBuffer)
Deprecated.ResourceHttpContent(Resource resource, java.lang.String contentType, int maxBuffer, java.util.Map<CompressedContentFormat,HttpContent> precompressedContents)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description java.lang.String
getCharacterEncoding()
Deprecated.HttpField
getContentEncoding()
Deprecated.java.lang.String
getContentEncodingValue()
Deprecated.HttpField
getContentLength()
Deprecated.long
getContentLengthValue()
Deprecated.HttpField
getContentType()
Deprecated.java.lang.String
getContentTypeValue()
Deprecated.java.nio.ByteBuffer
getDirectBuffer()
Deprecated.HttpField
getETag()
Deprecated.java.lang.String
getETagValue()
Deprecated.java.nio.ByteBuffer
getIndirectBuffer()
Deprecated.java.io.InputStream
getInputStream()
Deprecated.HttpField
getLastModified()
Deprecated.java.lang.String
getLastModifiedValue()
Deprecated.MimeTypes.Type
getMimeType()
Deprecated.java.util.Map<CompressedContentFormat,HttpContent>
getPrecompressedContents()
Deprecated.java.nio.channels.ReadableByteChannel
getReadableByteChannel()
Deprecated.Resource
getResource()
Deprecated.void
release()
Deprecated.java.lang.String
toString()
Deprecated.
-
-
-
Constructor Detail
-
ResourceHttpContent
public ResourceHttpContent(Resource resource, java.lang.String contentType)
Deprecated.
-
ResourceHttpContent
public ResourceHttpContent(Resource resource, java.lang.String contentType, int maxBuffer)
Deprecated.
-
ResourceHttpContent
public ResourceHttpContent(Resource resource, java.lang.String contentType, int maxBuffer, java.util.Map<CompressedContentFormat,HttpContent> precompressedContents)
Deprecated.
-
-
Method Detail
-
getContentTypeValue
public java.lang.String getContentTypeValue()
Deprecated.- Specified by:
getContentTypeValue
in interfaceHttpContent
-
getContentType
public HttpField getContentType()
Deprecated.- Specified by:
getContentType
in interfaceHttpContent
-
getContentEncoding
public HttpField getContentEncoding()
Deprecated.- Specified by:
getContentEncoding
in interfaceHttpContent
-
getContentEncodingValue
public java.lang.String getContentEncodingValue()
Deprecated.- Specified by:
getContentEncodingValue
in interfaceHttpContent
-
getCharacterEncoding
public java.lang.String getCharacterEncoding()
Deprecated.- Specified by:
getCharacterEncoding
in interfaceHttpContent
-
getMimeType
public MimeTypes.Type getMimeType()
Deprecated.- Specified by:
getMimeType
in interfaceHttpContent
-
getLastModified
public HttpField getLastModified()
Deprecated.- Specified by:
getLastModified
in interfaceHttpContent
-
getLastModifiedValue
public java.lang.String getLastModifiedValue()
Deprecated.- Specified by:
getLastModifiedValue
in interfaceHttpContent
-
getDirectBuffer
public java.nio.ByteBuffer getDirectBuffer()
Deprecated.- Specified by:
getDirectBuffer
in interfaceHttpContent
-
getETag
public HttpField getETag()
Deprecated.- Specified by:
getETag
in interfaceHttpContent
-
getETagValue
public java.lang.String getETagValue()
Deprecated.- Specified by:
getETagValue
in interfaceHttpContent
-
getIndirectBuffer
public java.nio.ByteBuffer getIndirectBuffer()
Deprecated.- Specified by:
getIndirectBuffer
in interfaceHttpContent
-
getContentLength
public HttpField getContentLength()
Deprecated.- Specified by:
getContentLength
in interfaceHttpContent
-
getContentLengthValue
public long getContentLengthValue()
Deprecated.- Specified by:
getContentLengthValue
in interfaceHttpContent
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
Deprecated.- Specified by:
getInputStream
in interfaceHttpContent
- Throws:
java.io.IOException
-
getReadableByteChannel
public java.nio.channels.ReadableByteChannel getReadableByteChannel() throws java.io.IOException
Deprecated.- Specified by:
getReadableByteChannel
in interfaceHttpContent
- Throws:
java.io.IOException
-
getResource
public Resource getResource()
Deprecated.- Specified by:
getResource
in interfaceHttpContent
-
release
public void release()
Deprecated.- Specified by:
release
in interfaceHttpContent
-
toString
public java.lang.String toString()
Deprecated.- Overrides:
toString
in classjava.lang.Object
-
getPrecompressedContents
public java.util.Map<CompressedContentFormat,HttpContent> getPrecompressedContents()
Deprecated.- Specified by:
getPrecompressedContents
in interfaceHttpContent
-
-