|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.balana.ctx.RequestCtxFactory
public class RequestCtxFactory
Factory that creates the AbstractRequestCtx
Constructor Summary | |
---|---|
RequestCtxFactory()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RequestCtxFactory()
Method Detail |
---|
public AbstractRequestCtx getRequestCtx(Node root) throws ParsingException
AbstractRequestCtx
based one the XACML version.
root
- the node to parse for the AbstractRequestCtx
AbstractRequestCtx
object
ParsingException
- 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
object
ParsingException
- 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 data
AbstractRequestCtx
object
ParsingException
- if the DOM node is invalidpublic static RequestCtxFactory getFactory()
public Element getXacmlRequest(String request) throws ParsingException
request
- XACML request as a String object
ParsingException
- throws, if fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |