public interface ProxyCallback
ProxyCallbackHandler}
,
AnonProxyRequest#run()}
Modifier and Type | Field and Description |
---|---|
static int |
STATUS_DELAY
indicates that packet processing should stop immediately and to delay packet sending until enuogh
data for processing is collected
|
static int |
STATUS_FINISHED
indicates that a packet should be not processed any further
|
static int |
STATUS_PROCESSABLE
indicates that a packet can be processed any further by other registered proxy callbacks
|
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 |
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.
|
static final int STATUS_FINISHED
static final int STATUS_DELAY
static final int STATUS_PROCESSABLE
int handleUpstreamChunk(AnonProxyRequest anonRequest, ProxyCallbackBuffer buffer) throws ProxyCallbackNotProcessableException
anonRequest
- 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.int handleDownstreamChunk(AnonProxyRequest anonRequest, ProxyCallbackBuffer buffer) throws ProxyCallbackNotProcessableException
anonRequest
- 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.void closeRequest(AnonProxyRequest anonRequest)
ProxyCallback
that the given
AnonProxyRequest
is being closed and all the related stored data
can be discarded.anonRequest
- Copyright © 2023. All rights reserved.