org.apache.tapestry5.internal.services
Class AssetProtectionDispatcher

java.lang.Object
  extended by org.apache.tapestry5.internal.services.AssetProtectionDispatcher
All Implemented Interfaces:
Dispatcher

public class AssetProtectionDispatcher
extends Object
implements Dispatcher

Dispatcher that handles whether to allow or deny access to particular assets. Actual work of authorizing a particular url is handled by implementations of AssetPathAuthorizer. Configuration is an ordered list of AssetPathAuthorizers. Each authorizer specifies an order of operations as a list (see AssetPathAuthorizer.Order).


Constructor Summary
AssetProtectionDispatcher(List<AssetPathAuthorizer> auths, ClasspathAssetAliasManager manager, org.slf4j.Logger logger)
           
 
Method Summary
 boolean dispatch(Request request, Response response)
          Analyzes the incoming request and performs an appropriate operation for each.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetProtectionDispatcher

public AssetProtectionDispatcher(List<AssetPathAuthorizer> auths,
                                 ClasspathAssetAliasManager manager,
                                 org.slf4j.Logger logger)
Method Detail

dispatch

public boolean dispatch(Request request,
                        Response response)
                 throws IOException
Description copied from interface: Dispatcher
Analyzes the incoming request and performs an appropriate operation for each.

Specified by:
dispatch in interface Dispatcher
Returns:
true if a response was delivered, false if the dispatcher did not handle the request (and a search for a handler should continue)
Throws:
IOException


Copyright © 2006-2010 Apache Software Foundation. All Rights Reserved.