Interface ContextPolicyManager


public interface ContextPolicyManager
Manages and stores all web context policies.
  • Method Details

    • getContextPolicy

      ContextPolicy getContextPolicy(String path)
      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 all ContextPolicy objects
      Returns:
      collection of policies The returned collection should be unmodifiable
    • setContextPolicy

      void setContextPolicy(String path, ContextPolicy contextPolicy)
      Sets a policy for a particular path
      Parameters:
      path - - context path
      contextPolicy - - context policy
    • isWhiteListed

      boolean isWhiteListed(String path)
      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