anon.proxy
Class ProxyCallbackHandler
java.lang.Object
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
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
callbacks
private java.util.Vector callbacks
ProxyCallbackHandler
public ProxyCallbackHandler()
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)