|
Apache Neethi 3.0.2-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.neethi.PolicyEngine
public class PolicyEngine
PolicyEngine provides set of static methods to create a Policy object from an InputStream, OMElement, .. etc. It wrappers a static PolicyBuilder to actually do the building. This class is provided to ease transition from Neethi 2.x to Neethi 3.x
Field Summary | |
---|---|
static String |
ALL
|
static String |
EXACTLY_ONE
|
static String |
POLICY
|
static String |
POLICY_NAMESPACE
|
static String |
POLICY_REF
|
Constructor Summary | |
---|---|
PolicyEngine()
|
Method Summary | |
---|---|
static Policy |
getPolicy(InputStream inputStream)
Creates a Policy object from an InputStream. |
static Policy |
getPolicy(Object element)
Creates a Policy object from an Element. |
static Policy |
getPolicy(org.apache.axiom.om.OMElement element)
Creates a Policy object from an OMElement. |
static PolicyReference |
getPolicyReference(Object element)
Creates a PolicyReference object from an Element. |
static PolicyReference |
getPolicyReference(org.apache.axiom.om.OMElement element)
Creates a PolicyReference object from an OMElement. |
static PolicyReference |
getPolicyReferene(InputStream inputStream)
Creates a PolicyReference object. |
static void |
registerBuilder(QName qname,
AssertionBuilder<?> builder)
Registers an AssertionBuilder instances and associates it with a QName. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String POLICY_NAMESPACE
public static final String POLICY
public static final String EXACTLY_ONE
public static final String ALL
public static final String POLICY_REF
Constructor Detail |
---|
public PolicyEngine()
Method Detail |
---|
public static void registerBuilder(QName qname, AssertionBuilder<?> builder)
qname
- the QName of the Assertion that the Builder can buildbuilder
- the AssertionBuilder that can build assertions that of 'qname'
typepublic static Policy getPolicy(InputStream inputStream)
inputStream
- the InputStream of the Policy
public static PolicyReference getPolicyReferene(InputStream inputStream)
inputStream
- the InputStream of the PolicyReference
public static Policy getPolicy(org.apache.axiom.om.OMElement element)
element
- the Policy elementpublic static Policy getPolicy(Object element)
element
- the Policy elementpublic static PolicyReference getPolicyReference(org.apache.axiom.om.OMElement element)
element
- the PolicyReference element
public static PolicyReference getPolicyReference(Object element)
element
- the PolicyReference element
|
Apache Neethi 3.0.2-redhat-2 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |