|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.proxy.AbstractProxyLogicHandler
org.apache.mina.proxy.handlers.socks.AbstractSocksLogicHandler
org.apache.mina.proxy.handlers.socks.Socks4LogicHandler
public class Socks4LogicHandler
Socks4LogicHandler.java - SOCKS4/SOCKS4a authentication mechanisms logic handler.
Field Summary |
---|
Fields inherited from class org.apache.mina.proxy.handlers.socks.AbstractSocksLogicHandler |
---|
request |
Constructor Summary | |
---|---|
Socks4LogicHandler(ProxyIoSession proxyIoSession)
|
Method Summary | |
---|---|
void |
doHandshake(IoFilter.NextFilter nextFilter)
Perform the handshake. |
protected void |
handleResponse(IoBuffer buf)
Handle a SOCKS4/SOCKS4a response from the proxy server. |
void |
messageReceived(IoFilter.NextFilter nextFilter,
IoBuffer buf)
Handle incoming data during the handshake process. |
protected void |
writeRequest(IoFilter.NextFilter nextFilter,
SocksProxyRequest request)
Encode a SOCKS4/SOCKS4a request and writes it to the next filter so it can be sent to the proxy server. |
Methods inherited from class org.apache.mina.proxy.AbstractProxyLogicHandler |
---|
closeSession, closeSession, enqueueWriteRequest, flushPendingWriteRequests, getProxyFilter, getProxyIoSession, getSession, isHandshakeComplete, setHandshakeComplete, writeData |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Socks4LogicHandler(ProxyIoSession proxyIoSession)
Method Detail |
---|
public void doHandshake(IoFilter.NextFilter nextFilter)
nextFilter
- the next filterprotected void writeRequest(IoFilter.NextFilter nextFilter, SocksProxyRequest request)
nextFilter
- the next filterrequest
- the request to send.public void messageReceived(IoFilter.NextFilter nextFilter, IoBuffer buf)
nextFilter
- the next filterbuf
- the server response data bufferprotected void handleResponse(IoBuffer buf) throws Exception
AbstractProxyLogicHandler.setHandshakeComplete()
if access is granted.
buf
- the buffer holding the server response data.
exception
- if server response is malformed or if request is rejected
by the proxy server.
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |