IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

com.ibm.btt.channel
Class PolicyResult

java.lang.Object
  extended by com.ibm.btt.channel.PolicyResult

public class PolicyResult
extends java.lang.Object

The PolicyResult is the outcome of the policy check. If accept is true, then continue the request processing, otherwise throwing exception. The messages is used to keep the messages generated during rule check.


Constructor Summary
PolicyResult()
           
 
Method Summary
 void addToMessages(java.lang.String message)
          Adds a message.
 java.lang.String getMessages()
           
 boolean isAccept()
           
 void reject()
          Rejects the request by setting the accept status to false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyResult

public PolicyResult()
Method Detail

isAccept

public boolean isAccept()
Returns:
true if accept the request otherwise return false.

reject

public void reject()
Rejects the request by setting the accept status to false.


addToMessages

public void addToMessages(java.lang.String message)
Adds a message.

Parameters:
message - The message to add.

getMessages

public java.lang.String getMessages()
Returns:
the message that set during policy check

IBM WebSphere Multichannel Bank Transformation Toolkit Javadoc

(c) Copyright IBM Corporation 1998, 2011