public interface ProxyLogicHandler
限定符和类型 | 方法和说明 |
---|---|
void |
doHandshake(IoFilter.NextFilter nextFilter)
Called at each step of the handshake procedure.
|
void |
enqueueWriteRequest(IoFilter.NextFilter nextFilter,
WriteRequest writeRequest)
Enqueue a message to be written once handshaking is complete.
|
ProxyIoSession |
getProxyIoSession() |
boolean |
isHandshakeComplete()
Tests if handshake process is complete.
|
void |
messageReceived(IoFilter.NextFilter nextFilter,
IoBuffer buf)
Handle incoming data during the handshake process.
|
boolean isHandshakeComplete()
void messageReceived(IoFilter.NextFilter nextFilter, IoBuffer buf) throws ProxyAuthException
nextFilter
- the next filter in the filter chainbuf
- the buffer holding the received dataProxyAuthException
- if authentication failsvoid doHandshake(IoFilter.NextFilter nextFilter) throws ProxyAuthException
nextFilter
- the next filter in filter chainProxyAuthException
- if authentication failsProxyIoSession getProxyIoSession()
ProxyIoSession
.void enqueueWriteRequest(IoFilter.NextFilter nextFilter, WriteRequest writeRequest)
nextFilter
- the next filter in filter chainwriteRequest
- the data to be written