org.apache.mina.proxy.handlers.http
Class AbstractAuthLogicHandler

java.lang.Object
  extended by org.apache.mina.proxy.handlers.http.AbstractAuthLogicHandler
Direct Known Subclasses:
HttpBasicAuthLogicHandler, HttpDigestAuthLogicHandler, HttpNoAuthLogicHandler, HttpNTLMAuthLogicHandler

public abstract class AbstractAuthLogicHandler
extends Object

AbstractAuthLogicHandler.java - Abstract class that handles an authentication mechanism 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)

Field Summary
protected  ProxyIoSession proxyIoSession
          Object that contains all the proxy authentication session informations.
protected  ProxyRequest request
          The request the proxy has to handle.
protected  int step
          The current step in the handshake.
 
Constructor Summary
protected AbstractAuthLogicHandler(ProxyIoSession proxyIoSession)
           
 
Method Summary
abstract  void doHandshake(IoFilter.NextFilter nextFilter)
          Called on each step of the handshaking process.
abstract  void handleResponse(HttpProxyResponse response)
          Handles a HTTP response from the proxy server.
protected  void writeRequest(IoFilter.NextFilter nextFilter, HttpProxyRequest request)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

request

protected ProxyRequest request
The request the proxy has to handle.


proxyIoSession

protected ProxyIoSession proxyIoSession
Object that contains all the proxy authentication session informations.


step

protected int step
The current step in the handshake.

Constructor Detail

AbstractAuthLogicHandler

protected AbstractAuthLogicHandler(ProxyIoSession proxyIoSession)
                            throws ProxyAuthException
Throws:
ProxyAuthException
Method Detail

doHandshake

public abstract void doHandshake(IoFilter.NextFilter nextFilter)
                          throws ProxyAuthException
Called on each step of the handshaking process.

Throws:
ProxyAuthException

handleResponse

public abstract void handleResponse(HttpProxyResponse response)
                             throws ProxyAuthException
Handles a HTTP response from the proxy server.

Parameters:
response - The response.
Throws:
ProxyAuthException

writeRequest

protected void writeRequest(IoFilter.NextFilter nextFilter,
                            HttpProxyRequest request)
                     throws ProxyAuthException
Throws:
ProxyAuthException


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