Java™ Platform
Standard Ed. 6
Annotation Type MTOM

public @interface MTOM

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:

The threshold() property can be used to set the threshold value used to determine when binary data should be XOP encoded.

JAX-WS 2.1

Optional Element Summary
 boolean enabled
          Specifies if this feature is enabled or disabled.
 int threshold
          Property for MTOM threshold value.


public abstract boolean enabled
Specifies if this feature is enabled or disabled.



public abstract int threshold
Property for MTOM threshold value. When MTOM is enabled, binary data above this size in bytes will be XOP encoded or sent as attachment. The value of this property MUST always be >= 0. Default value is 0.


Java™ Platform
Standard Ed. 6

Submit a bug or feature
For further API reference and developer documentation, see Java SE Developer Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.

Copyright © 1993, 2010, Oracle and/or its affiliates. All rights reserved.