com.sun.identity.xacml.context
Interface Response


public interface Response

The Response element is a container of one or more Results issued by policy decision point


Method Summary
 void addResult(Result result)
          Adds a Result to this object
 List getResults()
          Returns the Results of this object
 boolean isMutable()
          Checks if the object is mutable
 void makeImmutable()
          Makes the object immutable
 void setResults(List results)
          Sets the Results of this object
 String toXMLString()
          Returns a string representation of this object
 String toXMLString(boolean includeNSPrefix, boolean declareNS)
          Returns a string representation of this object
 

Method Detail

getResults

List getResults()
Returns the Results of this object

Returns:
the Results of this object

addResult

void addResult(Result result)
               throws XACMLException
Adds a Result to this object

Parameters:
result - the Result to add
Throws:
XACMLException - if the object is immutable

setResults

void setResults(List results)
                throws XACMLException
Sets the Results of this object

Parameters:
results - the Results of this object
Throws:
XACMLException - if the object is immutable

toXMLString

String toXMLString()
                   throws XACMLException
Returns a string representation of this object

Returns:
a string representation of this object
Throws:
XACMLException - if conversion fails for any reason

toXMLString

String toXMLString(boolean includeNSPrefix,
                   boolean declareNS)
                   throws XACMLException
Returns a string representation of this object

Parameters:
includeNSPrefix - Determines whether or not the namespace qualifier is prepended to the Element when converted
declareNS - Determines whether or not the namespace is declared within the Element.
Returns:
a string representation of this object
Throws:
XACMLException - if conversion fails for any reason

isMutable

boolean isMutable()
Checks if the object is mutable

Returns:
true if the object is mutable, false otherwise

makeImmutable

void makeImmutable()
Makes the object immutable