org.openliberty.openaz.pep
Class DefaultDecisionHandler

java.lang.Object
  extended by org.openliberty.openaz.pep.DefaultDecisionHandler
All Implemented Interfaces:
DecisionHandler, PostDecisionHandler, PreDecisionHandler

public class DefaultDecisionHandler
extends java.lang.Object
implements DecisionHandler, PreDecisionHandler, PostDecisionHandler

Provides a default implementation of the decide() method and has null implementations of preDecide() and postDecide().

Author:
Josh Bregman, Rich Levinson, Prateek Mishra

Constructor Summary
DefaultDecisionHandler()
           
 
Method Summary
 PepResponse decide(PepRequest request)
          Implements the decide() method by using the underlying AzService.decide(requestContext) method to execute the request, and handles the AzResponseContext that is returned by wrapping it in a PepResponse.
 void postDecide(PepRequest request, PepResponse response)
          Null implementation.
 void preDecide(PepRequest request)
          Null implementation.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultDecisionHandler

public DefaultDecisionHandler()
Method Detail

decide

public PepResponse decide(PepRequest request)
Implements the decide() method by using the underlying AzService.decide(requestContext) method to execute the request, and handles the AzResponseContext that is returned by wrapping it in a PepResponse.

Specified by:
decide in interface DecisionHandler

preDecide

public void preDecide(PepRequest request)
Null implementation.

Specified by:
preDecide in interface PreDecisionHandler

postDecide

public void postDecide(PepRequest request,
                       PepResponse response)
Null implementation.

Specified by:
postDecide in interface PostDecisionHandler