Class PolicyRequestHandler

  • All Implemented Interfaces:
    RequestHandler

    public class PolicyRequestHandler
    extends Object
    implements RequestHandler
    The PolicyRequestHandler class handles the policy related service requests sent by the Policy Enforcers. Currently it supports two types of requests. One is PolicyRequest which requests for the policy evaluation decisions, the other is AddPolicyListener which adds a policy listener to a service to receive policy notifications which include policy change notification and subject change notification.
    • Constructor Detail

      • PolicyRequestHandler

        public PolicyRequestHandler()
    • Method Detail

      • process

        public ResponseSet process​(PLLAuditor auditor,
                                   List<Request> requests,
                                   jakarta.servlet.http.HttpServletRequest servletRequest,
                                   jakarta.servlet.http.HttpServletResponse servletResponse,
                                   jakarta.servlet.ServletContext servletContext)
        Process the requests aÎnd return the responses.
        Specified by:
        process in interface RequestHandler
        Parameters:
        requests - Requests specified in the policy request
        auditor - Delegate for publication of 'access' audit events.
        servletRequest - Reference to HttpServletRequest object.
        servletResponse - Reference to HttpServletResponse object.
        servletContext - Reference to ServletContext object.
        Returns:
        the set of the response
      • printStats

        public static void printStats​(Stats policyStats)