org.apache.mina.proxy.handlers.socks
Class Socks5LogicHandler
java.lang.Object
org.apache.mina.proxy.AbstractProxyLogicHandler
org.apache.mina.proxy.handlers.socks.AbstractSocksLogicHandler
org.apache.mina.proxy.handlers.socks.Socks5LogicHandler
- All Implemented Interfaces:
- ProxyLogicHandler
public class Socks5LogicHandler
- extends AbstractSocksLogicHandler
Socks5LogicHandler.java - SOCKS5 authentication mechanisms logic handler.
- Since:
- MINA 2.0.0-M3
- Version:
- $Rev: 685703 $, $Date: 2008-08-14 00:14:47 +0200 (Do, 14 Aug 2008) $
- Author:
- The Apache MINA Project (dev@mina.apache.org)
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Socks5LogicHandler
public Socks5LogicHandler(ProxyIoSession proxyIoSession)
doHandshake
public void doHandshake(IoFilter.NextFilter nextFilter)
- Perform any handshaking processing.
messageReceived
public void messageReceived(IoFilter.NextFilter nextFilter,
IoBuffer buf)
- Handle incoming data during the handshake process. Should consume only the
handshake data from the buffer, leaving any extra data in place.
handleResponse
protected void handleResponse(IoFilter.NextFilter nextFilter,
IoBuffer buf,
int step)
throws Exception
- Handle a SOCKS v5 response from the proxy server.
- Throws:
Exception
closeSession
protected void closeSession(String message)
- Overrides:
closeSession
in class AbstractProxyLogicHandler
Copyright © 2004-2010 Apache MINA Project. All Rights Reserved.