org.apache.lenya.ac
Interface AccessControllerResolver

All Superinterfaces:
org.apache.avalon.framework.component.Component

public interface AccessControllerResolver
extends org.apache.avalon.framework.component.Component

An access controller resolver resolves the appropriate access controller for a given Cocoon object model.


Field Summary
static java.lang.String DEFAULT_RESOLVER
          The name of the default resolver to use.
static java.lang.String ROLE
          The Avalon role.
 
Method Summary
 void release(AccessController controller)
          Releases a resolved access controller.
 AccessController resolveAccessController(java.lang.String webappUrl)
          Resolves an access controller for a certain URL.
 

Field Detail

ROLE

static final java.lang.String ROLE
The Avalon role.


DEFAULT_RESOLVER

static final java.lang.String DEFAULT_RESOLVER
The name of the default resolver to use.

See Also:
Constant Field Values
Method Detail

resolveAccessController

AccessController resolveAccessController(java.lang.String webappUrl)
                                         throws AccessControlException
Resolves an access controller for a certain URL.

Parameters:
webappUrl - The URL within the web application (without context prefix).
Returns:
An access controller or null if no controller could be resolved.
Throws:
AccessControlException - when something went wrong.

release

void release(AccessController controller)
Releases a resolved access controller.

Parameters:
controller - The access controller to release.


Copyright 1999-2006 Apache Software Foundation. All Rights Reserved.