public class DefaultProxyAuthorizationManager extends Object implements ProxyAuthorizationManager
Constructor and Description |
---|
DefaultProxyAuthorizationManager() |
Modifier and Type | Method and Description |
---|---|
void |
addHandler(ProxyAuthorizationHandler pah)
Adds the specified
ProxyAuthorizationHandler . |
boolean |
handleProxyAuthorization(org.jboss.netty.handler.codec.http.HttpRequest request,
org.jboss.netty.channel.ChannelHandlerContext ctx)
Handles all aspects of authorizing the specified request, looping
through all registered
ProxyAuthorizationHandler s. |
public void addHandler(ProxyAuthorizationHandler pah)
ProxyAuthorizationManager
ProxyAuthorizationHandler
.addHandler
in interface ProxyAuthorizationManager
pah
- The ProxyAuthorizationHandler
to add.public boolean handleProxyAuthorization(org.jboss.netty.handler.codec.http.HttpRequest request, org.jboss.netty.channel.ChannelHandlerContext ctx)
ProxyAuthorizationManager
ProxyAuthorizationHandler
s.handleProxyAuthorization
in interface ProxyAuthorizationManager
request
- The HTTP request.ctx
- The context, including the underlying channel.true
if authorization succeeded, otherwise
false
.Copyright © 2009-2013 LittleShoot. All Rights Reserved.