public class RequestCtxFactory extends Object
Constructor and Description |
---|
RequestCtxFactory() |
Modifier and Type | Method and Description |
---|---|
static RequestCtxFactory |
getFactory()
Returns an instance of this factory.
|
AbstractRequestCtx |
getRequestCtx(InputStream input)
Returns instance of
AbstractRequestCtx based one the XACML version. |
AbstractRequestCtx |
getRequestCtx(Node root)
Returns instance of
AbstractRequestCtx based one the XACML version. |
AbstractRequestCtx |
getRequestCtx(String request)
Returns instance of
AbstractRequestCtx based one the XACML version. |
Element |
getXacmlRequest(String request)
Creates DOM representation of the XACML request
|
public AbstractRequestCtx getRequestCtx(Node root) throws ParsingException
AbstractRequestCtx
based one the XACML version.root
- the node to parse for the AbstractRequestCtx
AbstractRequestCtx
objectParsingException
- if the DOM node is invalidpublic AbstractRequestCtx getRequestCtx(String request) throws ParsingException
AbstractRequestCtx
based one the XACML version.request
- the String to parse for the AbstractRequestCtx
AbstractRequestCtx
objectParsingException
- if the request is invalidpublic AbstractRequestCtx getRequestCtx(InputStream input) throws ParsingException
AbstractRequestCtx
based one the XACML version.
Creates a new RequestCtx
by parsing XML from an input stream. Note that this 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
- input a stream providing the XML dataAbstractRequestCtx
objectParsingException
- if the DOM node is invalidpublic static RequestCtxFactory getFactory()
public Element getXacmlRequest(String request) throws ParsingException
request
- XACML request as a String objectParsingException
- throws, if failsCopyright © 2020 WSO2. All rights reserved.