anon.proxy
Interface ProxyCallback

All Known Implementing Classes:
DecompressionProxyCallback, HTTPProxyCallback

public interface ProxyCallback


Field Summary
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 proceesed any further
static int STATUS_PROCESSABLE
          indicates that a packet can be proceesed any further by other registered proxy callbacks
 
Method Summary
 void closeRequest(AnonProxyRequest anonRequest)
           
 int handleDownstreamChunk(AnonProxyRequest anonRequest, ProxyCallbackBuffer buffer)
           
 int handleUpstreamChunk(AnonProxyRequest anonRequest, ProxyCallbackBuffer buffer)
           
 

Field Detail

STATUS_FINISHED

static final int STATUS_FINISHED
indicates that a packet should be not proceesed any further

See Also:
Constant Field Values

STATUS_DELAY

static final int STATUS_DELAY
indicates that packet processing should stop immediately and to delay packet sending until enuogh data for processing is collected

See Also:
Constant Field Values

STATUS_PROCESSABLE

static final int STATUS_PROCESSABLE
indicates that a packet can be proceesed any further by other registered proxy callbacks

See Also:
Constant Field Values
Method Detail

handleUpstreamChunk

int handleUpstreamChunk(AnonProxyRequest anonRequest,
                        ProxyCallbackBuffer buffer)
                        throws ProxyCallbackNotProcessableException
Throws:
ProxyCallbackNotProcessableException

handleDownstreamChunk

int handleDownstreamChunk(AnonProxyRequest anonRequest,
                          ProxyCallbackBuffer buffer)
                          throws ProxyCallbackNotProcessableException
Throws:
ProxyCallbackNotProcessableException

closeRequest

void closeRequest(AnonProxyRequest anonRequest)