AbstractHttpLogicHandler
, AbstractProxyLogicHandler
, AbstractSocksLogicHandler
, HttpSmartProxyHandler
, Socks4LogicHandler
, Socks5LogicHandler
public interface ProxyLogicHandler
Modifier and Type | Method | 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() |
|
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 writtenCopyright © 2004–2018 Apache MINA Project. All rights reserved.