MTOMFeaturepublic final class MTOMFeature extends WebServiceFeature This feature represents the use of MTOM with a
web service.
The following describes the affects of this feature with respect
to being enabled or disabled:
- ENABLED: In this Mode, MTOM will be enabled.
- DISABLED: In this Mode, MTOM will be disabled
The {@link #threshold} property can be used to set the threshold
value used to determine when binary data should be XOP encoded. |
Fields Summary |
---|
public static final String | IDConstant value identifying the MTOMFeature | protected int | thresholdProperty 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. |
Constructors Summary |
---|
public MTOMFeature()Create an MTOMFeature .
The instance created will be enabled.
this.enabled = true;
| public MTOMFeature(boolean enabled)Creates an MTOMFeature .
this.enabled = enabled;
| public MTOMFeature(int threshold)Creates an MTOMFeature .
The instance created will be enabled.
if (threshold < 0)
throw new WebServiceException("MTOMFeature.threshold must be >= 0, actual value: "+threshold);
this.enabled = true;
this.threshold = threshold;
| public MTOMFeature(boolean enabled, int threshold)Creates an MTOMFeature .
if (threshold < 0)
throw new WebServiceException("MTOMFeature.threshold must be >= 0, actual value: "+threshold);
this.enabled = enabled;
this.threshold = threshold;
|
Methods Summary |
---|
public java.lang.String | getID(){@inheritDoc}
return ID;
| public int | getThreshold()Gets the threshold value used to determine when binary data
should be sent as an attachment.
return threshold;
|
|