|
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.ResponseCtx
Represents the response to a request made to the XACML PDP.
| Constructor Summary | |
ResponseCtx(Result result)
Constructor that creates a new ResponseCtx with only a
single Result (a common case). |
|
ResponseCtx(Set results)
Constructor that creates a new ResponseCtx with a
Set of Results. |
|
| Method Summary | |
void |
encode(OutputStream output)
Encodes this context into its XML representation and writes this encoding to the given OutputStream with no
indentation. |
void |
encode(OutputStream output,
Indenter indenter)
Encodes this context into its XML representation and writes this encoding to the given OutputStream with
indentation. |
static ResponseCtx |
getInstance(InputStream input)
Creates a new ResponseCtx by parsing XML from an
input stream. |
static ResponseCtx |
getInstance(Node root)
Creates a new instance of ResponseCtx based on the given
DOM root node. |
Set |
getResults()
Get the set of Results from this response. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ResponseCtx(Result result)
ResponseCtx with only a
single Result (a common case).
result - the single result in the responsepublic ResponseCtx(Set results)
ResponseCtx with a
Set of Results. The Set must
be non-empty.
results - a Set of Result objects| Method Detail |
public static ResponseCtx getInstance(Node root)
throws ParsingException
ResponseCtx based on the given
DOM root node. A ParsingException is thrown if the DOM
root doesn't represent a valid ResponseType.
root - the DOM root of a ResponseType
ResponseCtx
ParsingException - if the node is invalid
public static ResponseCtx getInstance(InputStream input)
throws ParsingException
ResponseCtx by parsing XML from an
input stream. Note that this is a convenience method, and it will
not do schema validation by default. You should be parsing the data
yourself, and then providing the root node to the other
getInstance method. If you use this convenience
method, you probably want to turn on validation by setting the
context schema file (see the programmer guide for more information
on this).
input - a stream providing the XML data
ResponseCtx
ParserException - if there is an error parsing the input
ParsingExceptionpublic Set getResults()
Results from this response.
Set of resultspublic void encode(OutputStream output)
OutputStream with no
indentation.
output - a stream into which the XML-encoded data is written
public void encode(OutputStream output,
Indenter indenter)
OutputStream with
indentation.
output - a stream into which the XML-encoded data is writtenindenter - an object that creates indentation strings
|
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.