com.ibm.btt.channel
Class PolicyResult
java.lang.Object
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.
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 |
PolicyResult
public PolicyResult()
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
(c) Copyright IBM Corporation 1998, 2010