org.apache.mina.proxy
Interface ProxyLogicHandler

All Known Implementing Classes:
AbstractHttpLogicHandler, AbstractProxyLogicHandler, AbstractSocksLogicHandler, HttpSmartProxyHandler, Socks4LogicHandler, Socks5LogicHandler

public interface ProxyLogicHandler

ProxyLogicHandler.java - Interface implemented by classes containing proxy type specific logic.

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)

Method Summary
 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()
          Returns true if handshaking is complete and data can be sent through the proxy.
 void messageReceived(IoFilter.NextFilter nextFilter, IoBuffer buf)
          Handle incoming data during the handshake process.
 

Method Detail

isHandshakeComplete

boolean isHandshakeComplete()
Returns true if handshaking is complete and data can be sent through the proxy.


messageReceived

void messageReceived(IoFilter.NextFilter nextFilter,
                     IoBuffer buf)
                     throws ProxyAuthException
Handle incoming data during the handshake process. Should consume only the handshake data from the buffer, leaving any extra data in place.

Throws:
ProxyAuthException

doHandshake

void doHandshake(IoFilter.NextFilter nextFilter)
                 throws ProxyAuthException
Called at each step of the handshake procedure.

Throws:
ProxyAuthException

getProxyIoSession

ProxyIoSession getProxyIoSession()
Returns the ProxyIoSession.


enqueueWriteRequest

void enqueueWriteRequest(IoFilter.NextFilter nextFilter,
                         WriteRequest writeRequest)
Enqueue a message to be written once handshaking is complete.



Copyright © 2004-2010 Apache MINA Project. All Rights Reserved.