| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.xml.ws.WebServiceFeature
javax.xml.ws.soap.MTOMFeature
public final class MTOMFeature
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.
| Field Summary | |
|---|---|
| static String | IDConstant value identifying the MTOMFeature | 
| protected  int | thresholdProperty for MTOM threshold value. | 
| Fields inherited from class javax.xml.ws.WebServiceFeature | 
|---|
| enabled | 
| Constructor Summary | |
|---|---|
| MTOMFeature()Create an MTOMFeature. | |
| MTOMFeature(boolean enabled)Creates an MTOMFeature. | |
| MTOMFeature(boolean enabled,
            int threshold)Creates an MTOMFeature. | |
| MTOMFeature(int threshold)Creates an MTOMFeature. | |
| Method Summary | |
|---|---|
|  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. | 
| Methods inherited from class javax.xml.ws.WebServiceFeature | 
|---|
| isEnabled | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
public static final String ID
protected int threshold
| Constructor Detail | 
|---|
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 < 0
public 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 < 0| Method Detail | 
|---|
public String getID()
getID in class WebServiceFeaturepublic int getThreshold()
| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright 2008 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.