java.lang.Object
com.sun.xml.ws.encoding.policy.MtomPolicyMapConfigurator
- All Implemented Interfaces:
PolicyMapConfigurator
Generate an MTOM policy if MTOM was enabled.
- Author:
- Jakub Podlesak (japod at sun.com), Fabian Ritzmann
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGenerates an MTOM policy if MTOM is enabled.
-
Constructor Details
-
MtomPolicyMapConfigurator
public MtomPolicyMapConfigurator()Default constructor.
-
-
Method Details
-
update
public Collection<PolicySubject> update(PolicyMap policyMap, SEIModel model, WSBinding wsBinding) throws PolicyException Generates an MTOM policy if MTOM is enabled.- If MTOM is enabled
- If MTOM policy does not already exist, generate
- Otherwise do nothing
- Otherwise, do nothing (that implies that we do not remove any MTOM policies if MTOM is disabled)
- Specified by:
update
in interfacePolicyMapConfigurator
- Parameters:
policyMap
- This map contains the policies that were already createdmodel
- The WSDL model of the servicewsBinding
- The binding of the service- Returns:
- A collection of policies and the subject to which they are attached. May return null or an empty collection.
- Throws:
PolicyException
- Throw this exception if an error occurs
- If MTOM is enabled
-