FileDocCategorySizeDatePackage
PolicyFeature.javaAPI DocExample4005Tue May 29 16:56:36 BST 2007com.sun.xml.ws.policy.jaxws.client

PolicyFeature

public class PolicyFeature extends 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.

Fields Summary
private static final String
featureId
private final com.sun.xml.ws.policy.PolicyMap
policyMap
private final com.sun.xml.ws.api.model.wsdl.WSDLModel
wsdlModel
private final com.sun.xml.ws.api.client.WSPortInfo
portInfo
Constructors Summary
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.

param
map A PolicyMap
param
model The associated WSDL model
param
port The port

    
                                   
           
        this.policyMap = map;
        this.wsdlModel = model;
        this.portInfo = port;
        this.enabled = true;
    
Methods Summary
public java.lang.StringgetID()
Returns the ID of this feature.

return
The ID of this feature

        return this.featureId;
    
public com.sun.xml.ws.policy.PolicyMapgetPolicyMap()
Returns the PolicyMap stored with this feature instance.

return
The PolicyMap stored with this feature instance

        return this.policyMap;
    
public com.sun.xml.ws.api.client.WSPortInfogetPortInfo()
Returns the WSPortInfo stored with this feature instance.

return
The WSPortInfo stored with this feature instance

        return this.portInfo;
    
public com.sun.xml.ws.api.model.wsdl.WSDLModelgetWsdlModel()
Returns the WSDLModel stored with this feature instance.

return
The WSDLModel stored with this feature instance

        return this.wsdlModel;