public class GzipHttpContent extends Object implements HttpContent
HttpContent.Factory
Modifier and Type | Field and Description |
---|---|
static PreEncodedHttpField |
CONTENT_ENCODING_GZIP |
static String |
ETAG_GZIP |
static String |
ETAG_GZIP_QUOTE |
Constructor and Description |
---|
GzipHttpContent(HttpContent content,
HttpContent contentGz) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
String |
getCharacterEncoding() |
HttpField |
getContentEncoding() |
String |
getContentEncodingValue() |
HttpField |
getContentLength() |
long |
getContentLengthValue() |
HttpField |
getContentType() |
String |
getContentTypeValue() |
ByteBuffer |
getDirectBuffer() |
HttpField |
getETag() |
String |
getETagValue() |
HttpContent |
getGzipContent() |
ByteBuffer |
getIndirectBuffer() |
InputStream |
getInputStream() |
HttpField |
getLastModified() |
String |
getLastModifiedValue() |
MimeTypes.Type |
getMimeType() |
ReadableByteChannel |
getReadableByteChannel() |
Resource |
getResource() |
int |
hashCode() |
void |
release() |
static String |
removeGzipFromETag(String etag) |
String |
toString() |
public static final String ETAG_GZIP
public static final String ETAG_GZIP_QUOTE
public static final PreEncodedHttpField CONTENT_ENCODING_GZIP
public GzipHttpContent(HttpContent content, HttpContent contentGz)
public Resource getResource()
getResource
in interface HttpContent
public HttpField getETag()
getETag
in interface HttpContent
public String getETagValue()
getETagValue
in interface HttpContent
public HttpField getLastModified()
getLastModified
in interface HttpContent
public String getLastModifiedValue()
getLastModifiedValue
in interface HttpContent
public HttpField getContentType()
getContentType
in interface HttpContent
public String getContentTypeValue()
getContentTypeValue
in interface HttpContent
public HttpField getContentEncoding()
getContentEncoding
in interface HttpContent
public String getContentEncodingValue()
getContentEncodingValue
in interface HttpContent
public String getCharacterEncoding()
getCharacterEncoding
in interface HttpContent
public MimeTypes.Type getMimeType()
getMimeType
in interface HttpContent
public void release()
release
in interface HttpContent
public ByteBuffer getIndirectBuffer()
getIndirectBuffer
in interface HttpContent
public ByteBuffer getDirectBuffer()
getDirectBuffer
in interface HttpContent
public HttpField getContentLength()
getContentLength
in interface HttpContent
public long getContentLengthValue()
getContentLengthValue
in interface HttpContent
public InputStream getInputStream() throws IOException
getInputStream
in interface HttpContent
IOException
public ReadableByteChannel getReadableByteChannel() throws IOException
getReadableByteChannel
in interface HttpContent
IOException
public HttpContent getGzipContent()
getGzipContent
in interface HttpContent
Copyright © 1995-2016 Webtide. All Rights Reserved.