public class DecompressionProxyCallback extends java.lang.Object implements ProxyCallback
| Modifier and Type | Class and Description |
|---|---|
static class |
DecompressionProxyCallback.DecompressionKit |
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_DECOMPRESSION_OUTPUT |
STATUS_DELAY, STATUS_FINISHED, STATUS_PROCESSABLE| Constructor and Description |
|---|
DecompressionProxyCallback() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeRequest(AnonProxyRequest anonRequest)
Signals to the
ProxyCallback that the given
AnonProxyRequest is being closed and all the related stored data
can be discarded. |
int |
decompress(ProxyCallbackBuffer buffer,
DecompressionProxyCallback.DecompressionKit decompressionKit,
boolean gzipEncoding,
boolean start) |
int |
handleDownstreamChunk(AnonProxyRequest anonRequest,
ProxyCallbackBuffer buffer)
Processes a chunk of received data, before it is given to the client of the
proxy.
|
int |
handleUpstreamChunk(AnonProxyRequest anonRequest,
ProxyCallbackBuffer buffer)
Processes a chunk of data, before it is sent out.
|
int |
toUnsignedByte(byte nByte) |
int |
toUnsignedShort(byte lower,
byte upper) |
public static final int MAX_DECOMPRESSION_OUTPUT
public int toUnsignedShort(byte lower,
byte upper)
public int toUnsignedByte(byte nByte)
public void closeRequest(AnonProxyRequest anonRequest)
ProxyCallbackProxyCallback that the given
AnonProxyRequest is being closed and all the related stored data
can be discarded.closeRequest in interface ProxyCallbackpublic int decompress(ProxyCallbackBuffer buffer, DecompressionProxyCallback.DecompressionKit decompressionKit, boolean gzipEncoding, boolean start) throws java.util.zip.DataFormatException, java.lang.ArrayIndexOutOfBoundsException
java.util.zip.DataFormatExceptionjava.lang.ArrayIndexOutOfBoundsExceptionpublic int handleDownstreamChunk(AnonProxyRequest anonRequest, ProxyCallbackBuffer buffer) throws ProxyCallbackNotProcessableException
ProxyCallbackhandleDownstreamChunk in interface ProxyCallbackanonRequest - The request the data is from.buffer - Data that is sent to and from the ProxyCallback object.ProxyCallbackNotProcessableException - if an error occurred during
processing of the data.public int handleUpstreamChunk(AnonProxyRequest anonRequest, ProxyCallbackBuffer buffer) throws ProxyCallbackNotProcessableException
ProxyCallbackhandleUpstreamChunk in interface ProxyCallbackanonRequest - The request the data is from.buffer - Data that is sent to and from the ProxyCallback object.ProxyCallbackNotProcessableException - if an error occurred during
processing of the data.Copyright © 2023. All rights reserved.