Package com.sun.xml.ws.api.client
Class SelectOptimalEncodingFeature
- java.lang.Object
-
- jakarta.xml.ws.WebServiceFeature
-
- com.sun.xml.ws.api.client.SelectOptimalEncodingFeature
-
@ManagedData public class SelectOptimalEncodingFeature extends jakarta.xml.ws.WebServiceFeature
Client side feature to enable or disable the selection of the optimal encoding by the client when sending outbound messages.The following describes the affects of this feature with respect to being enabled or disabled:
- ENABLED: In this Mode, the most optimal encoding will be selected depending on the configuration and capabilities of the client the capabilities of the Web service.
- DISABLED: In this Mode, the default encoding will be selected.
If this feature is not present on a Web service then the default behaviour is equivalent to this feature being present and disabled.
If this feature is enabled by the client and the Service supports the Fast Infoset encoding, as specified by the
FastInfosetFeature
, and Fast Infoset is determined to be the most optimal encoding, then the Fast Infoset encoding will be automatically selected by the client.TODO: Still not sure if a feature is a server side only thing or can also be a client side thing. If the former then this class should be removed.
- Author:
- [email protected]
-
-
Field Summary
Fields Modifier and Type Field Description static String
ID
Constant value identifying theSelectOptimalEncodingFeature
-
Constructor Summary
Constructors Constructor Description SelectOptimalEncodingFeature()
Create aSelectOptimalEncodingFeature
.SelectOptimalEncodingFeature(boolean enabled)
Create aSelectOptimalEncodingFeature
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getID()
-
-
-
Field Detail
-
ID
public static final String ID
Constant value identifying theSelectOptimalEncodingFeature
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SelectOptimalEncodingFeature
public SelectOptimalEncodingFeature()
Create aSelectOptimalEncodingFeature
. The instance created will be enabled.
-
SelectOptimalEncodingFeature
public SelectOptimalEncodingFeature(boolean enabled)
Create aSelectOptimalEncodingFeature
- Parameters:
enabled
- specifies whether this feature should be enabled or not.
-
-
Method Detail
-
getID
@ManagedAttribute public String getID()
- Specified by:
getID
in classjakarta.xml.ws.WebServiceFeature
-
-