public final class MTOMFeature extends WebServiceFeature
This feature represents the use of MTOM with a web service. This feature can be used during the creation of SEI proxy, and Dispatch
instances on the client side and Endpoint
instances on the server side. This feature cannot be used for Service
instance creation on the client side.
The following describes the affects of this feature with respect to being enabled or disabled:
The threshold
property can be used to set the threshold value used to determine when binary data should be XOP encoded.
public static final String ID
Constant value identifying the MTOMFeature
protected int threshold
Property for MTOM threshold value. This property serves as a hint when MTOM is enabled, binary data above this size in bytes SHOULD be sent as attachment. The value of this property MUST always be >= 0. Default value is 0.
public MTOMFeature()
Create an MTOMFeature
. The instance created will be enabled.
public MTOMFeature(boolean enabled)
Creates an MTOMFeature
.
enabled
- specifies if this feature should be enabled or notpublic MTOMFeature(int threshold)
Creates an MTOMFeature
. The instance created will be enabled.
threshold
- the size in bytes that binary data SHOULD be before being sent as an attachment.WebServiceException
- if threshold is < 0public MTOMFeature(boolean enabled, int threshold)
Creates an MTOMFeature
.
enabled
- specifies if this feature should be enabled or notthreshold
- the size in bytes that binary data SHOULD be before being sent as an attachment.WebServiceException
- if threshold is < 0public String getID()
Get the unique identifier for this WebServiceFeature.
getID
in class WebServiceFeature
public int getThreshold()
Gets the threshold value used to determine when binary data should be sent as an attachment.
© 1993–2017, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.