org.apache.axis2.util
Class PolicyUtil

java.lang.Object
  extended by org.apache.axis2.util.PolicyUtil

public class PolicyUtil
extends java.lang.Object


Constructor Summary
PolicyUtil()
           
 
Method Summary
static org.apache.neethi.PolicyReference createPolicyReference(org.apache.neethi.Policy policy)
           
static java.lang.String generateId(AxisDescription description)
           
static org.apache.neethi.Policy getMergedPolicy(java.util.List policies, AxisDescription description)
           
static org.apache.neethi.Policy getMergedPolicy(java.util.List policies, AxisService service)
           
static org.apache.neethi.PolicyComponent getPolicyComponent(org.w3c.dom.Element element)
           
static org.apache.axiom.om.OMElement getPolicyComponentAsOMElement(org.apache.neethi.PolicyComponent component)
           
static org.apache.axiom.om.OMElement getPolicyComponentAsOMElement(org.apache.neethi.PolicyComponent policyComponent, ExternalPolicySerializer externalPolicySerializer)
           
static org.apache.neethi.PolicyComponent getPolicyComponentFromOMElement(org.apache.axiom.om.OMElement policyComponent)
           
static org.apache.neethi.Policy getPolicyFromOMElement(org.apache.axiom.om.OMElement policyElement)
           
static org.apache.neethi.PolicyReference getPolicyReferenceFromOMElement(org.apache.axiom.om.OMElement policyRefElement)
           
static java.lang.String getSafeString(java.lang.String unsafeString)
           
static java.lang.String policyComponentToString(org.apache.neethi.PolicyComponent policyComponent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyUtil

public PolicyUtil()
Method Detail

getSafeString

public static java.lang.String getSafeString(java.lang.String unsafeString)

createPolicyReference

public static org.apache.neethi.PolicyReference createPolicyReference(org.apache.neethi.Policy policy)

getPolicyComponentAsOMElement

public static org.apache.axiom.om.OMElement getPolicyComponentAsOMElement(org.apache.neethi.PolicyComponent policyComponent,
                                                                          ExternalPolicySerializer externalPolicySerializer)
                                                                   throws javax.xml.stream.XMLStreamException,
                                                                          javax.xml.stream.FactoryConfigurationError
Throws:
javax.xml.stream.XMLStreamException
javax.xml.stream.FactoryConfigurationError

getPolicyComponentAsOMElement

public static org.apache.axiom.om.OMElement getPolicyComponentAsOMElement(org.apache.neethi.PolicyComponent component)
                                                                   throws javax.xml.stream.XMLStreamException,
                                                                          javax.xml.stream.FactoryConfigurationError
Throws:
javax.xml.stream.XMLStreamException
javax.xml.stream.FactoryConfigurationError

getPolicyComponentFromOMElement

public static org.apache.neethi.PolicyComponent getPolicyComponentFromOMElement(org.apache.axiom.om.OMElement policyComponent)
                                                                         throws java.lang.IllegalArgumentException
Throws:
java.lang.IllegalArgumentException

getPolicyFromOMElement

public static org.apache.neethi.Policy getPolicyFromOMElement(org.apache.axiom.om.OMElement policyElement)

getPolicyReferenceFromOMElement

public static org.apache.neethi.PolicyReference getPolicyReferenceFromOMElement(org.apache.axiom.om.OMElement policyRefElement)

getPolicyComponent

public static org.apache.neethi.PolicyComponent getPolicyComponent(org.w3c.dom.Element element)

policyComponentToString

public static java.lang.String policyComponentToString(org.apache.neethi.PolicyComponent policyComponent)
                                                throws javax.xml.stream.XMLStreamException,
                                                       javax.xml.stream.FactoryConfigurationError
Throws:
javax.xml.stream.XMLStreamException
javax.xml.stream.FactoryConfigurationError

generateId

public static java.lang.String generateId(AxisDescription description)

getMergedPolicy

public static org.apache.neethi.Policy getMergedPolicy(java.util.List policies,
                                                       AxisDescription description)

getMergedPolicy

public static org.apache.neethi.Policy getMergedPolicy(java.util.List policies,
                                                       AxisService service)


Copyright © 2007 Apache Web Services Project. All Rights Reserved.