|
SunTM's XACML Implementation for JavaTM | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.xacml.ctx.StatusDetail
This class represents the StatusDetailType in the context schema. Because status detail is defined as a sequence of xs:any XML type, the data in this class must be generic, and it is up to the application developer to interpret the data appropriately.
Constructor Summary | |
StatusDetail(List attributes)
Constructor that uses a List of Attribute s
to define the status detail. |
|
StatusDetail(String encoded)
Constructor that takes the text-encoded form of the XML to use as the status data. |
Method Summary | |
Node |
getDetail()
Returns the StatusDetailType DOM root node. |
String |
getEncoded()
Returns the text-encoded version of this data, if possible. |
static StatusDetail |
getInstance(Node root)
Creates an instance of a StatusDetail object based on
the given DOM root node. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StatusDetail(List attributes) throws IllegalArgumentException
List
of Attribute
s
to define the status detail. This is a common form of detail data,
and can be used for things like providing the information included
with the missing-attribute status code.
attributes
- a List
of Attribute
s
IllegalArgumentException
- if there is a problem encoding the
Attribute
spublic StatusDetail(String encoded) throws ParsingException
StatusDetail
XML tag, and the resulting text must
be valid XML or a ParsingException
will be thrown.
encoded
- a non-null String
that encodes the
status detail
ParsingException
- if the encoded text is invalid XMLMethod Detail |
public static StatusDetail getInstance(Node root) throws ParsingException
StatusDetail
object based on
the given DOM root node. The node must be a valid StatusDetailType
root, or else a ParsingException
is thrown.
root
- the DOM root of the StatusDetailType XML type
StatusDetail
object
ParsingException
- if the root node is invalidpublic Node getDetail()
Attribute
s, which can be created from their
root DOM nodes using their getInstance
method.
public String getEncoded() throws IllegalStateException
String
form constructor was used, this will just be the
original text wrapped with the StatusData tag. If the List
form constructor was used, it will be the encoded attribute data.
If this was created using the getInstance
method, then
getEncoded
will throw an exception.
IllegalStateException
- if this object was created using the
getInstance
method
|
Sun's XACML Implementation Version 1.2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Sun, Sun Microsystems, the Sun Logo, and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.