HttpContentpublic class GzipHttpContent extends java.lang.Object implements HttpContent
HttpContent.Factory| Modifier and Type | Field | Description |
|---|---|---|
static PreEncodedHttpField |
CONTENT_ENCODING_GZIP |
|
static java.lang.String |
ETAG_GZIP |
|
static java.lang.String |
ETAG_GZIP_QUOTE |
| Constructor | Description |
|---|---|
GzipHttpContent(HttpContent content,
HttpContent contentGz) |
| 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() |
|
HttpContent |
getGzipContent() |
|
java.nio.ByteBuffer |
getIndirectBuffer() |
|
java.io.InputStream |
getInputStream() |
|
HttpField |
getLastModified() |
|
java.lang.String |
getLastModifiedValue() |
|
MimeTypes.Type |
getMimeType() |
|
java.nio.channels.ReadableByteChannel |
getReadableByteChannel() |
|
Resource |
getResource() |
|
int |
hashCode() |
|
void |
release() |
|
static java.lang.String |
removeGzipFromETag(java.lang.String etag) |
|
java.lang.String |
toString() |
public static final java.lang.String ETAG_GZIP
public static final java.lang.String ETAG_GZIP_QUOTE
public static final PreEncodedHttpField CONTENT_ENCODING_GZIP
public GzipHttpContent(HttpContent content, HttpContent contentGz)
public static java.lang.String removeGzipFromETag(java.lang.String etag)
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic Resource getResource()
getResource in interface HttpContentpublic HttpField getETag()
getETag in interface HttpContentpublic java.lang.String getETagValue()
getETagValue in interface HttpContentpublic HttpField getLastModified()
getLastModified in interface HttpContentpublic java.lang.String getLastModifiedValue()
getLastModifiedValue in interface HttpContentpublic HttpField getContentType()
getContentType in interface HttpContentpublic java.lang.String getContentTypeValue()
getContentTypeValue in interface HttpContentpublic HttpField getContentEncoding()
getContentEncoding in interface HttpContentpublic java.lang.String getContentEncodingValue()
getContentEncodingValue in interface HttpContentpublic java.lang.String getCharacterEncoding()
getCharacterEncoding in interface HttpContentpublic MimeTypes.Type getMimeType()
getMimeType in interface HttpContentpublic void release()
release in interface HttpContentpublic java.nio.ByteBuffer getIndirectBuffer()
getIndirectBuffer in interface HttpContentpublic java.nio.ByteBuffer getDirectBuffer()
getDirectBuffer in interface HttpContentpublic HttpField getContentLength()
getContentLength in interface HttpContentpublic long getContentLengthValue()
getContentLengthValue in interface HttpContentpublic java.io.InputStream getInputStream()
throws java.io.IOException
getInputStream in interface HttpContentjava.io.IOExceptionpublic java.nio.channels.ReadableByteChannel getReadableByteChannel()
throws java.io.IOException
getReadableByteChannel in interface HttpContentjava.io.IOExceptionpublic java.lang.String toString()
toString in class java.lang.Objectpublic HttpContent getGzipContent()
getGzipContent in interface HttpContentCopyright © 1995–2018 Webtide. All rights reserved.