| Modifier and Type | Class and Description |
|---|---|
| private class | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| private RetainableByteBuffer | |
| private final int | |
| private final Callback | |
| private final CRC32 | |
| private CompressionPool | |
| private final GzipFactory | |
| private boolean | |
| private final AtomicReference | |
| private final boolean | |
| private static final byte[] | |
| private static final int | |
| private static final Logger | |
| private static final byte |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| protected void | |
| private String | |
| public void | failed(Throwable
the reason for the operation failure x)Overrides default org. Callback invoked when the operation fails. |
| public Invocable. | |
| private void | |
| public void | |
| public void | succeeded()
Overrides default org. Callback invoked when the operation completes. |
| public void | write(boolean
whether the ByteBuffer is the last to write last, ByteBuffer the ByteBuffer to write content, Callback the callback to notify when the write operation is complete callback)Overrides org. Implements org. Writes the given |
| _buffer | back to summary |
|---|---|
| private RetainableByteBuffer _buffer | |
| _bufferSize | back to summary |
|---|---|
| private final int _bufferSize | |
| _callback | back to summary |
|---|---|
| private final Callback _callback | |
| _crc | back to summary |
|---|---|
| private final CRC32 _crc | |
| _deflaterEntry | back to summary |
|---|---|
| private CompressionPool<Deflater>. | |
| _factory | back to summary |
|---|---|
| private final GzipFactory _factory | |
| _last | back to summary |
|---|---|
| private boolean _last | |
| _state | back to summary |
|---|---|
| private final AtomicReference<GzipResponseAndCallback. | |
| _syncFlush | back to summary |
|---|---|
| private final boolean _syncFlush | |
| GZIP_HEADER | back to summary |
|---|---|
| private static final byte[] GZIP_HEADER | |
| GZIP_TRAILER_SIZE | back to summary |
|---|---|
| private static final int GZIP_TRAILER_SIZE | |
| LOG | back to summary |
|---|---|
| private static final Logger LOG | |
| OS_UNKNOWN | back to summary |
|---|---|
| private static final byte OS_UNKNOWN | |
| GzipResponseAndCallback | back to summary |
|---|---|
| public GzipResponseAndCallback(GzipHandler handler, Request request, Response response, Callback callback) | |
| addTrailer | back to summary |
|---|---|
| private void addTrailer(ByteBuffer outputBuffer) | |
| commit | back to summary |
|---|---|
| protected void commit(boolean last, Callback callback, ByteBuffer content) | |
| etagGzip | back to summary |
|---|---|
| private String etagGzip(String etag) | |
| failed | back to summary |
|---|---|
| public void failed(Throwable x) Overrides default org. Doc from org. Callback invoked when the operation fails. | |
| getInvocationType | back to summary |
|---|---|
| public Invocable. Overrides default org.
| |
| gzip | back to summary |
|---|---|
| private void gzip(boolean complete, final Callback callback, ByteBuffer content) | |
| noCompression | back to summary |
|---|---|
| public void noCompression() | |
| succeeded | back to summary |
|---|---|
| public void succeeded() Overrides default org. Doc from org. Callback invoked when the operation completes.
| |
| write | back to summary |
|---|---|
| public void write(boolean last, ByteBuffer content, Callback callback) Overrides org. Implements org. Doc from org. Writes the given Implementations guarantee that calls to this method are safely reentrant so that
stack overflows are avoided in the case of mutual recursion between the execution of
the The invocation of the passed Thus a
| |
| Modifier and Type | Field and Description |
|---|---|
| private final ByteBuffer | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| private IteratingCallback. | compressing(Deflater deflater, ByteBuffer outputBuffer)
This method is called directly from |
| private IteratingCallback. | finishing(Deflater deflater, ByteBuffer outputBuffer)
This method is called by |
| private int | |
| protected void | onCompleteFailure(Throwable
the throwable to indicate cause of failure x)Overrides org. Invoked when the overall task has completed with a failure. |
| protected IteratingCallback. | process()
Implements abstract org. Method called by |
| public String | toString()
Overrides org. Returns a string representation of the object. |
| private void |
| _content | back to summary |
|---|---|
| private final ByteBuffer _content | |
| _last | back to summary |
|---|---|
| private final boolean _last | |
| GzipBufferCB | back to summary |
|---|---|
| public GzipBufferCB(boolean complete, Callback callback, ByteBuffer content) | |
| cleanup | back to summary |
|---|---|
| private void cleanup() | |
| compressing | back to summary |
|---|---|
| private IteratingCallback. This method is called directly from | |
| finishing | back to summary |
|---|---|
| private IteratingCallback. This method is called by | |
| getFlushMode | back to summary |
|---|---|
| private int getFlushMode() | |
| onCompleteFailure | back to summary |
|---|---|
| protected void onCompleteFailure(Throwable x) Overrides org. Doc from org. Invoked when the overall task has completed with a failure. | |
| process | back to summary |
|---|---|
| protected IteratingCallback. Implements abstract org. Doc from org. Method called by Implementations must initiate the asynchronous execution of the sub-task (if any) and return an appropriate action:
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides org. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| write | back to summary |
|---|---|
| private void write(boolean last, ByteBuffer outputBuffer) | |
| Modifier and Type | Field and Description |
|---|---|
| public static final GzipResponseAndCallback. | |
| public static final GzipResponseAndCallback. | |
| public static final GzipResponseAndCallback. | |
| public static final GzipResponseAndCallback. | |
| public static final GzipResponseAndCallback. | |
| public static final GzipResponseAndCallback. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static GzipResponseAndCallback. | |
| public static GzipResponseAndCallback. |
| COMMITTING | back to summary |
|---|---|
| public static final GzipResponseAndCallback. | |
| COMPRESSING | back to summary |
|---|---|
| public static final GzipResponseAndCallback. | |
| FINISHED | back to summary |
|---|---|
| public static final GzipResponseAndCallback. | |
| FINISHING | back to summary |
|---|---|
| public static final GzipResponseAndCallback. | |
| MIGHT_COMPRESS | back to summary |
|---|---|
| public static final GzipResponseAndCallback. | |
| NOT_COMPRESSING | back to summary |
|---|---|
| public static final GzipResponseAndCallback. | |
| GZState | back to summary |
|---|---|
| private GZState() | |
| valueOf | back to summary |
|---|---|
| public static GzipResponseAndCallback. | |
| values | back to summary |
|---|---|
| public static GzipResponseAndCallback. | |