org.apache.axis2.util
Class PolicyAttachmentUtil

java.lang.Object
  extended byorg.apache.axis2.util.PolicyAttachmentUtil

public class PolicyAttachmentUtil
extends Object

This util class which implements WSPolicyAttachment sepcification (September 2004).

Author:
Sanka Samaranayake

Constructor Summary
PolicyAttachmentUtil()
           
PolicyAttachmentUtil(InputStream wsdlInputStream)
           
PolicyAttachmentUtil(org.apache.wsdl.WSDLDescription wsdlDescription)
           
 
Method Summary
 org.apache.ws.policy.Policy getEndPointPolicy(QName qname)
           
 org.apache.ws.policy.Policy getFaultMeassagePolicy(QName endPointName, QName opName, QName fault)
           
 org.apache.ws.policy.Policy getInputMeassagePolicy(QName eqname, QName oqname)
           
 org.apache.ws.policy.Policy getOperationPolicy(QName eqame, QName oqname)
           
 org.apache.ws.policy.Policy getOutputMeassagePolicy(QName endPointName, QName opName)
           
 org.apache.ws.policy.Policy getPolicyForEndPoint(QName epName)
          Returns the Effective policy for an Endpoint.
 org.apache.ws.policy.Policy getPolicyForInputMessage(QName endPoint, QName operation)
          Returns the effective policy of an Input Message.
 org.apache.ws.policy.Policy getPolicyForOperation(QName endPoint, QName operation)
          Returns the Effective policy for an Operation.
 org.apache.ws.policy.Policy getPolicyForOutputMessage(QName endPoint, QName operation)
          Returns the effective policy of an Output Message.
 org.apache.ws.policy.Policy getPolicyForService(QName serviceName)
          Retruns the Effective policy for a service.
 org.apache.ws.policy.util.PolicyRegistry getPolicyRegistry()
           
 Element getSchemaElement(String uri)
           
 org.apache.ws.policy.Policy getServicePolicy(QName qname)
           
 String getTargetURI()
           
 org.apache.wsdl.WSDLDescription getWSDLDescription()
           
 boolean hasPolicies()
           
 void setWSDLDescription(org.apache.wsdl.WSDLDescription wsdlDescription)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyAttachmentUtil

public PolicyAttachmentUtil()

PolicyAttachmentUtil

public PolicyAttachmentUtil(org.apache.wsdl.WSDLDescription wsdlDescription)

PolicyAttachmentUtil

public PolicyAttachmentUtil(InputStream wsdlInputStream)
Method Detail

setWSDLDescription

public void setWSDLDescription(org.apache.wsdl.WSDLDescription wsdlDescription)

getWSDLDescription

public org.apache.wsdl.WSDLDescription getWSDLDescription()

getPolicyForService

public org.apache.ws.policy.Policy getPolicyForService(QName serviceName)
Retruns the Effective policy for a service.

Parameters:
serviceName -
Returns:

getPolicyForEndPoint

public org.apache.ws.policy.Policy getPolicyForEndPoint(QName epName)
Returns the Effective policy for an Endpoint.

Parameters:
epName -
Returns:

getPolicyForOperation

public org.apache.ws.policy.Policy getPolicyForOperation(QName endPoint,
                                                         QName operation)
Returns the Effective policy for an Operation.

Parameters:
endPoint -
operation -
Returns:

getPolicyForInputMessage

public org.apache.ws.policy.Policy getPolicyForInputMessage(QName endPoint,
                                                            QName operation)
Returns the effective policy of an Input Message.

Parameters:
endPoint -
operation -
Returns:

getPolicyForOutputMessage

public org.apache.ws.policy.Policy getPolicyForOutputMessage(QName endPoint,
                                                             QName operation)
Returns the effective policy of an Output Message.

Parameters:
endPoint -
operation -
Returns:

getServicePolicy

public org.apache.ws.policy.Policy getServicePolicy(QName qname)
                                             throws IllegalArgumentException
Parameters:
qname -
Returns:
Throws:
IllegalArgumentException

getEndPointPolicy

public org.apache.ws.policy.Policy getEndPointPolicy(QName qname)

getOperationPolicy

public org.apache.ws.policy.Policy getOperationPolicy(QName eqame,
                                                      QName oqname)

getInputMeassagePolicy

public org.apache.ws.policy.Policy getInputMeassagePolicy(QName eqname,
                                                          QName oqname)

getOutputMeassagePolicy

public org.apache.ws.policy.Policy getOutputMeassagePolicy(QName endPointName,
                                                           QName opName)

getFaultMeassagePolicy

public org.apache.ws.policy.Policy getFaultMeassagePolicy(QName endPointName,
                                                          QName opName,
                                                          QName fault)

getPolicyRegistry

public org.apache.ws.policy.util.PolicyRegistry getPolicyRegistry()

getSchemaElement

public Element getSchemaElement(String uri)

getTargetURI

public String getTargetURI()

hasPolicies

public boolean hasPolicies()