com.sun.xml.ws.encoding.policy
Class MtomPolicyMapConfigurator

java.lang.Object
  extended by com.sun.xml.ws.encoding.policy.MtomPolicyMapConfigurator
All Implemented Interfaces:
PolicyMapConfigurator

public class MtomPolicyMapConfigurator
extends Object
implements PolicyMapConfigurator

Generate an MTOM policy if MTOM was enabled.


Nested Class Summary
(package private) static class MtomPolicyMapConfigurator.MtomAssertion
           
 
Constructor Summary
MtomPolicyMapConfigurator()
           
 
Method Summary
 Collection<com.sun.xml.ws.policy.PolicySubject> update(com.sun.xml.ws.policy.PolicyMap policyMap, SEIModel model, WSBinding wsBinding)
          Generates an MTOM policy if MTOM is enabled.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MtomPolicyMapConfigurator

public MtomPolicyMapConfigurator()
Method Detail

update

public Collection<com.sun.xml.ws.policy.PolicySubject> update(com.sun.xml.ws.policy.PolicyMap policyMap,
                                                              SEIModel model,
                                                              WSBinding wsBinding)
                                                       throws com.sun.xml.ws.policy.PolicyException
Generates an MTOM policy if MTOM is enabled.
  1. If MTOM is enabled
    1. If MTOM policy does not already exist, generate
    2. Otherwise do nothing
  2. Otherwise, do nothing (that implies that we do not remove any MTOM policies if MTOM is disabled)

Specified by:
update in interface PolicyMapConfigurator
Parameters:
policyMap - This map contains the policies that were already created
model - The WSDL model of the service
wsBinding - 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:
com.sun.xml.ws.policy.PolicyException - Throw this exception if an error occurs


Copyright (c) 1997-2012 Oracle and/or its affiliates. All rights reserved.