org.apache.axis2.transport.http.server
Class ProxyAuthRequestHandler
java.lang.Object
org.apache.axis2.transport.http.server.ProxyAuthRequestHandler
- All Implemented Interfaces:
- HttpRequestHandler
- public class ProxyAuthRequestHandler
- extends Object
- implements HttpRequestHandler
This request handler guards access to a proxy when used in a request handler
chain. It checks the headers for valid credentials and performs the
authentication handshake if necessary.
|
Constructor Summary |
ProxyAuthRequestHandler(org.apache.commons.httpclient.Credentials creds)
|
ProxyAuthRequestHandler(org.apache.commons.httpclient.Credentials creds,
String realm)
|
ProxyAuthRequestHandler(org.apache.commons.httpclient.Credentials creds,
String realm,
boolean keepalive)
TODO replace creds parameter with a class specific to an auth scheme
encapsulating all required information for a specific scheme |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PROXY_AUTH_RESP
public static final String PROXY_AUTH_RESP
- The proxy authenticate response header.
- See Also:
- Constant Field Values
ProxyAuthRequestHandler
public ProxyAuthRequestHandler(org.apache.commons.httpclient.Credentials creds)
ProxyAuthRequestHandler
public ProxyAuthRequestHandler(org.apache.commons.httpclient.Credentials creds,
String realm)
ProxyAuthRequestHandler
public ProxyAuthRequestHandler(org.apache.commons.httpclient.Credentials creds,
String realm,
boolean keepalive)
- TODO replace creds parameter with a class specific to an auth scheme
encapsulating all required information for a specific scheme
- Parameters:
creds -
processRequest
public boolean processRequest(SimpleHttpServerConnection conn,
SimpleRequest request)
throws IOException
- Description copied from interface:
HttpRequestHandler
- The request handler is asked to process this request.
If it is not capable/interested in processing it, this call should
be simply ignored.
Any modification of the output stream (via
conn.getWriter())
by this request handler will stop the execution chain and return the output
to the client.
The handler may also rewrite the request parameters (this is useful in
HttpRequestHandlerChain structures).
- Specified by:
processRequest in interface HttpRequestHandler
- Parameters:
conn - The Connection object to which this request belongs to.request - The request object.
- Returns:
- true if this handler handled the request and no other handlers in the
chain should be called, false otherwise.
- Throws:
IOException