Interface ContextPolicyManager
public interface ContextPolicyManager
Manages and stores all web context policies.
-
Method Summary
Modifier and TypeMethodDescriptionReturns a Collection of allContextPolicyobjectsgetContextPolicy(String path) Returns the policy associated with the given context path.booleanReturns true if guest should be allowed for all context pathsbooleanReturns true if session information should be stored for all context pathsbooleanisWhiteListed(String path) Returns true if the policy is white listed.voidsetContextPolicy(String path, ContextPolicy contextPolicy) Sets a policy for a particular path
-
Method Details
-
getContextPolicy
Returns the policy associated with the given context path. The argument is assumed to be the type of path returned from calling httpRequest.getContextPath();- Parameters:
path- - context path- Returns:
- policy associated with the given path
-
getAllContextPolicies
Collection<ContextPolicy> getAllContextPolicies()Returns a Collection of allContextPolicyobjects- Returns:
- collection of policies The returned collection should be unmodifiable
-
setContextPolicy
Sets a policy for a particular path- Parameters:
path- - context pathcontextPolicy- - context policy
-
isWhiteListed
Returns true if the policy is white listed.- Parameters:
path- - - context path- Returns:
- true if the policy is white listed
-
getGuestAccess
boolean getGuestAccess()Returns true if guest should be allowed for all context paths- Returns:
- true if guest is access is on
-
getSessionAccess
boolean getSessionAccess()Returns true if session information should be stored for all context paths- Returns:
- true if session information should be stored
-