public class ResponseImpl extends Object implements Response
Response
element is a container of
one or more Result
s issuded by authorization authority.
schema:
<xs:complexType name="ResponseType"> <xs:sequence> <xs:element ref="xacml-context:Result" maxOccurs="unbounded"/> <xs:sequence> <xs:complexType>
Constructor and Description |
---|
ResponseImpl()
Constructs a
Response object |
ResponseImpl(Element element)
Constructs a
Response object from an XML DOM element |
ResponseImpl(String xml)
Constructs a
Response object from an XML string |
Modifier and Type | Method and Description |
---|---|
void |
addResult(Result result)
Adds a
Result to this object |
List |
getResults()
Returns the
Result s of this object |
boolean |
isMutable()
Checks if the object is mutable
|
void |
makeImmutable()
Makes the object immutable
|
void |
setResults(List values)
Sets the
Result s 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
|
public ResponseImpl()
Response
objectpublic ResponseImpl(String xml) throws XACMLException
Response
object from an XML stringxml
- string representing a Response
objectSAMLException
- if the XML string could not be processedXACMLException
public ResponseImpl(Element element) throws XACMLException
Response
object from an XML DOM elementelement
- XML DOM element representing a Response
objectSAMLException
- if the DOM element could not be processedXACMLException
public List getResults()
Result
s of this objectgetResults
in interface Response
Result
s of this objectpublic void setResults(List values) throws XACMLException
Result
s of this objectsetResults
in interface Response
values
- the Result
s of this object.XACMLException
- if the object is immutable.public void addResult(Result result) throws XACMLException
Result
to this objectaddResult
in interface Response
result
- the Result
to addXACMLException
- if the object is immutablepublic String toXMLString() throws XACMLException
toXMLString
in interface Response
XACMLException
- if conversion fails for any reasonpublic String toXMLString(boolean includeNSPrefix, boolean declareNS) throws XACMLException
toXMLString
in interface Response
includeNSPrefix
- Determines whether or not the namespace qualifier
is prepended to the Element when converteddeclareNS
- Determines whether or not the namespace is declared
within the Element.XACMLException
- if conversion fails for any reasonpublic boolean isMutable()
public void makeImmutable()
makeImmutable
in interface Response
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.