public interface ProxyLogicHandler
Modifier and Type | Method and Description |
---|---|
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()
Returns the
ProxyIoSession . |
boolean |
isHandshakeComplete()
Tests if handshake process is complete.
|
void |
messageReceived(IoFilter.NextFilter nextFilter,
IoBuffer buf)
Handle incoming data during the handshake process.
|
boolean isHandshakeComplete()
true
if handshaking is complete and
data can be sent through the proxy, false otherwise.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 writtenCopyright © 2004-2019 Apache MINA Project. All Rights Reserved.