com.sun.xml.ws.policy.jaxws.client
Class PolicyFeature

java.lang.Object
  extended by javax.xml.ws.WebServiceFeature
      extended by com.sun.xml.ws.policy.jaxws.client.PolicyFeature

public class PolicyFeature
extends javax.xml.ws.WebServiceFeature

Store a policy map on the endpoint. This feature should be set on the binding. It does not make sense to set a policy map per port because the map contains the policies for all ports in a WSDL document.


Field Summary
 
Fields inherited from class javax.xml.ws.WebServiceFeature
enabled
 
Constructor Summary
PolicyFeature(com.sun.xml.ws.policy.PolicyMap map, com.sun.xml.ws.api.model.wsdl.WSDLModel model, com.sun.xml.ws.api.client.WSPortInfo port)
          Creates a new instance of PolicyFeature and sets this feature to enabled.
 
Method Summary
 java.lang.String getID()
          Returns the ID of this feature.
 com.sun.xml.ws.policy.PolicyMap getPolicyMap()
          Returns the PolicyMap stored with this feature instance.
 com.sun.xml.ws.api.client.WSPortInfo getPortInfo()
          Returns the WSPortInfo stored with this feature instance.
 com.sun.xml.ws.api.model.wsdl.WSDLModel getWsdlModel()
          Returns the WSDLModel stored with this feature instance.
 
Methods inherited from class javax.xml.ws.WebServiceFeature
isEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PolicyFeature

public PolicyFeature(com.sun.xml.ws.policy.PolicyMap map,
                     com.sun.xml.ws.api.model.wsdl.WSDLModel model,
                     com.sun.xml.ws.api.client.WSPortInfo port)
Creates a new instance of PolicyFeature and sets this feature to enabled.

Parameters:
map - A PolicyMap
model - The associated WSDL model
port - The port
Method Detail

getID

public java.lang.String getID()
Returns the ID of this feature.

Specified by:
getID in class javax.xml.ws.WebServiceFeature
Returns:
The ID of this feature

getPolicyMap

public com.sun.xml.ws.policy.PolicyMap getPolicyMap()
Returns the PolicyMap stored with this feature instance.

Returns:
The PolicyMap stored with this feature instance

getWsdlModel

public com.sun.xml.ws.api.model.wsdl.WSDLModel getWsdlModel()
Returns the WSDLModel stored with this feature instance.

Returns:
The WSDLModel stored with this feature instance

getPortInfo

public com.sun.xml.ws.api.client.WSPortInfo getPortInfo()
Returns the WSPortInfo stored with this feature instance.

Returns:
The WSPortInfo stored with this feature instance