HttpContent
public class PrecompressedHttpContent extends java.lang.Object implements HttpContent
HttpContent.ContentFactory
Constructor | Description |
---|---|
PrecompressedHttpContent(HttpContent content,
HttpContent precompressedContent,
CompressedContentFormat format) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(java.lang.Object obj) |
|
java.lang.String |
getCharacterEncoding() |
|
HttpField |
getContentEncoding() |
|
java.lang.String |
getContentEncodingValue() |
|
HttpField |
getContentLength() |
|
long |
getContentLengthValue() |
|
HttpField |
getContentType() |
|
java.lang.String |
getContentTypeValue() |
|
java.nio.ByteBuffer |
getDirectBuffer() |
|
HttpField |
getETag() |
|
java.lang.String |
getETagValue() |
|
java.nio.ByteBuffer |
getIndirectBuffer() |
|
java.io.InputStream |
getInputStream() |
|
HttpField |
getLastModified() |
|
java.lang.String |
getLastModifiedValue() |
|
MimeTypes.Type |
getMimeType() |
|
java.util.Map<CompressedContentFormat,HttpContent> |
getPrecompressedContents() |
|
java.nio.channels.ReadableByteChannel |
getReadableByteChannel() |
|
Resource |
getResource() |
|
int |
hashCode() |
|
void |
release() |
|
java.lang.String |
toString() |
public PrecompressedHttpContent(HttpContent content, HttpContent precompressedContent, CompressedContentFormat format)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public Resource getResource()
getResource
in interface HttpContent
public HttpField getETag()
getETag
in interface HttpContent
public java.lang.String getETagValue()
getETagValue
in interface HttpContent
public HttpField getLastModified()
getLastModified
in interface HttpContent
public java.lang.String getLastModifiedValue()
getLastModifiedValue
in interface HttpContent
public HttpField getContentType()
getContentType
in interface HttpContent
public java.lang.String getContentTypeValue()
getContentTypeValue
in interface HttpContent
public HttpField getContentEncoding()
getContentEncoding
in interface HttpContent
public java.lang.String getContentEncodingValue()
getContentEncodingValue
in interface HttpContent
public java.lang.String getCharacterEncoding()
getCharacterEncoding
in interface HttpContent
public MimeTypes.Type getMimeType()
getMimeType
in interface HttpContent
public void release()
release
in interface HttpContent
public java.nio.ByteBuffer getIndirectBuffer()
getIndirectBuffer
in interface HttpContent
public java.nio.ByteBuffer getDirectBuffer()
getDirectBuffer
in interface HttpContent
public HttpField getContentLength()
getContentLength
in interface HttpContent
public long getContentLengthValue()
getContentLengthValue
in interface HttpContent
public java.io.InputStream getInputStream() throws java.io.IOException
getInputStream
in interface HttpContent
java.io.IOException
public java.nio.channels.ReadableByteChannel getReadableByteChannel() throws java.io.IOException
getReadableByteChannel
in interface HttpContent
java.io.IOException
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map<CompressedContentFormat,HttpContent> getPrecompressedContents()
getPrecompressedContents
in interface HttpContent
Copyright © 1995–2017 Webtide. All rights reserved.