public final class MTOMFeature extends WebServiceFeature
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.
Modifier and Type | Field | Description |
---|---|---|
static String |
ID |
Constant value identifying the MTOMFeature
|
protected int |
threshold |
Property for MTOM threshold value.
|
enabled
Constructor | Description |
---|---|
MTOMFeature() |
Create an
MTOMFeature . |
MTOMFeature(boolean enabled) |
Creates a
MTOMFeature . |
MTOMFeature(boolean enabled,
int threshold) |
Creates a
MTOMFeature . |
MTOMFeature(int threshold) |
Creates a
MTOMFeature . |
Modifier and Type | Method | Description |
---|---|---|
String |
getID() |
Get the unique identifier for this WebServiceFeature.
|
int |
getThreshold() |
Gets the threshold value used to determine when binary data
should be sent as an attachment.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isEnabled
public static final String ID
protected int threshold
public MTOMFeature()
MTOMFeature
.
The instance created will be enabled.public MTOMFeature(boolean enabled)
MTOMFeature
.enabled
- specifies if this feature should be enabled or notpublic MTOMFeature(int threshold)
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)
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()
getID
in class WebServiceFeature
public int getThreshold()
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-internal+0-adhoc.mlchung.jdk9-jdeps