Package org.apache.axis2.util
Class PolicyUtil
- java.lang.Object
-
- org.apache.axis2.util.PolicyUtil
-
public class PolicyUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description PolicyUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static org.apache.neethi.PolicyReference
createPolicyReference(org.apache.neethi.Policy policy)
static String
generateId(AxisDescription description)
static org.apache.neethi.Policy
getMergedPolicy(Collection<org.apache.neethi.PolicyComponent> policies, AxisDescription description)
static org.apache.neethi.Policy
getMergedPolicy(List policies, AxisService service)
static Iterator<OMElement>
getPolicyChildren(OMElement parent)
static org.apache.neethi.PolicyComponent
getPolicyComponent(Element element)
static OMElement
getPolicyComponentAsOMElement(org.apache.neethi.PolicyComponent component)
static OMElement
getPolicyComponentAsOMElement(org.apache.neethi.PolicyComponent policyComponent, ExternalPolicySerializer externalPolicySerializer)
static org.apache.neethi.PolicyComponent
getPolicyComponentFromOMElement(OMElement policyComponent)
static org.apache.neethi.Policy
getPolicyFromOMElement(OMElement policyElement)
static Iterator<OMElement>
getPolicyRefChildren(OMElement parent)
static org.apache.neethi.PolicyReference
getPolicyReferenceFromOMElement(OMElement policyRefElement)
static String
getSafeString(String unsafeString)
static String
policyComponentToString(org.apache.neethi.PolicyComponent policyComponent)
-
-
-
Method Detail
-
createPolicyReference
public static org.apache.neethi.PolicyReference createPolicyReference(org.apache.neethi.Policy policy)
-
getPolicyComponentAsOMElement
public static OMElement getPolicyComponentAsOMElement(org.apache.neethi.PolicyComponent policyComponent, ExternalPolicySerializer externalPolicySerializer) throws XMLStreamException, FactoryConfigurationError
-
getPolicyComponentAsOMElement
public static OMElement getPolicyComponentAsOMElement(org.apache.neethi.PolicyComponent component) throws XMLStreamException, FactoryConfigurationError
-
getPolicyComponentFromOMElement
public static org.apache.neethi.PolicyComponent getPolicyComponentFromOMElement(OMElement policyComponent) throws IllegalArgumentException
- Throws:
IllegalArgumentException
-
getPolicyFromOMElement
public static org.apache.neethi.Policy getPolicyFromOMElement(OMElement policyElement)
-
getPolicyReferenceFromOMElement
public static org.apache.neethi.PolicyReference getPolicyReferenceFromOMElement(OMElement policyRefElement)
-
getPolicyComponent
public static org.apache.neethi.PolicyComponent getPolicyComponent(Element element)
-
policyComponentToString
public static String policyComponentToString(org.apache.neethi.PolicyComponent policyComponent) throws XMLStreamException, FactoryConfigurationError
-
generateId
public static String generateId(AxisDescription description)
-
getMergedPolicy
public static org.apache.neethi.Policy getMergedPolicy(Collection<org.apache.neethi.PolicyComponent> policies, AxisDescription description)
-
getMergedPolicy
public static org.apache.neethi.Policy getMergedPolicy(List policies, AxisService service)
-
-