com.sun.grizzly.filter
Class ProxyCallbackHandler
java.lang.Object
com.sun.grizzly.filter.ProxyCallbackHandler
- All Implemented Interfaces:
- CallbackHandler<Context>, Handler
public abstract class ProxyCallbackHandler
- extends Object
- implements CallbackHandler<Context>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProxyCallbackHandler
protected ProxyCallbackHandler(boolean authentication,
CallbackHandler<Context> callbackhandler,
ConnectorHandler connectorHandler,
CountDownLatch proxyHandshakeDone,
String host,
int port,
String agent,
String user,
String pass)
onException
public abstract void onException(String msg,
Exception e)
onConnect
public void onConnect(IOEvent<Context> ioEvent)
- Description copied from interface:
CallbackHandler
- This method is called when an non blocking OP_CONNECT is ready
to get processed. This method must invoke ConnectorHandler.finishConnect()
to complete the connection operations.
- Specified by:
onConnect
in interface CallbackHandler<Context>
- Parameters:
ioEvent
- an object containing information about the current
non blocking connection.
wasHandshakeSuccessfull
public boolean wasHandshakeSuccessfull()
getHandshakeException
public Exception getHandshakeException()
onRead
public void onRead(IOEvent<Context> ioEvent)
- Description copied from interface:
CallbackHandler
- This method is called when an non blocking OP_READ is ready
to get processed.
- Specified by:
onRead
in interface CallbackHandler<Context>
- Parameters:
ioEvent
- an object containing information about the current
non blocking connection.
onWrite
public void onWrite(IOEvent<Context> ioEvent)
- Description copied from interface:
CallbackHandler
- This method is called when an non blocking OP_WRITE is ready
to get processed.
- Specified by:
onWrite
in interface CallbackHandler<Context>
- Parameters:
ioEvent
- an object containing information about the current
non blocking connection.
getProxyAuth
public String getProxyAuth()
Copyright © 2012 Oracle Corporation. All Rights Reserved.