org.apache.mina.proxy.handlers.http.basic
Class HttpBasicAuthLogicHandler

java.lang.Object
  extended by org.apache.mina.proxy.handlers.http.AbstractAuthLogicHandler
      extended by org.apache.mina.proxy.handlers.http.basic.HttpBasicAuthLogicHandler

public class HttpBasicAuthLogicHandler
extends AbstractAuthLogicHandler

HttpBasicAuthLogicHandler.java - HTTP Basic authentication mechanism 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)

Field Summary
 
Fields inherited from class org.apache.mina.proxy.handlers.http.AbstractAuthLogicHandler
proxyIoSession, request, step
 
Constructor Summary
HttpBasicAuthLogicHandler(ProxyIoSession proxyIoSession)
           
 
Method Summary
static String createAuthorization(String username, String password)
          Computes authorization header value.
 void doHandshake(IoFilter.NextFilter nextFilter)
          Called on each step of the handshaking process.
 void handleResponse(HttpProxyResponse response)
          Handles a HTTP response from the proxy server.
 
Methods inherited from class org.apache.mina.proxy.handlers.http.AbstractAuthLogicHandler
writeRequest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpBasicAuthLogicHandler

public HttpBasicAuthLogicHandler(ProxyIoSession proxyIoSession)
                          throws ProxyAuthException
Throws:
ProxyAuthException
Method Detail

doHandshake

public void doHandshake(IoFilter.NextFilter nextFilter)
                 throws ProxyAuthException
Description copied from class: AbstractAuthLogicHandler
Called on each step of the handshaking process.

Specified by:
doHandshake in class AbstractAuthLogicHandler
Throws:
ProxyAuthException

createAuthorization

public static String createAuthorization(String username,
                                         String password)
Computes authorization header value.


handleResponse

public void handleResponse(HttpProxyResponse response)
                    throws ProxyAuthException
Description copied from class: AbstractAuthLogicHandler
Handles a HTTP response from the proxy server.

Specified by:
handleResponse in class AbstractAuthLogicHandler
Parameters:
response - The response.
Throws:
ProxyAuthException


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