anon.proxy
Class ProxyCallbackHandler

java.lang.Object
  extended by anon.proxy.ProxyCallbackHandler

public class ProxyCallbackHandler
extends java.lang.Object

Author:
Simon Pecher Experimental framework class to filter or modify data before it is transferred via the gateway. Customized Callback-Objects can be registered.

Field Summary
private  java.util.Vector callbacks
           
 
Constructor Summary
ProxyCallbackHandler()
           
 
Method Summary
 void closeRequest(AnonProxyRequest anonRequest)
           
 void deliverDownstream(AnonProxyRequest anonRequest, ProxyCallbackBuffer buffer)
           
 void deliverUpstream(AnonProxyRequest anonRequest, ProxyCallbackBuffer buffer)
           
 void registerProxyCallback(ProxyCallback callback)
           
 void removeCallback(ProxyCallback callback)
           
private  ProxyCallback[] toArray()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

callbacks

private java.util.Vector callbacks
Constructor Detail

ProxyCallbackHandler

public ProxyCallbackHandler()
Method Detail

deliverUpstream

public void deliverUpstream(AnonProxyRequest anonRequest,
                            ProxyCallbackBuffer buffer)
                     throws ProxyCallbackNotProcessableException,
                            ProxyCallbackDelayException
Throws:
ProxyCallbackNotProcessableException
ProxyCallbackDelayException

deliverDownstream

public void deliverDownstream(AnonProxyRequest anonRequest,
                              ProxyCallbackBuffer buffer)
                       throws ProxyCallbackNotProcessableException,
                              ProxyCallbackDelayException
Throws:
ProxyCallbackNotProcessableException
ProxyCallbackDelayException

closeRequest

public void closeRequest(AnonProxyRequest anonRequest)

toArray

private ProxyCallback[] toArray()

registerProxyCallback

public void registerProxyCallback(ProxyCallback callback)

removeCallback

public void removeCallback(ProxyCallback callback)