Package com.arjuna.mw.wst11.client
Class WSTXFeature
java.lang.Object
jakarta.xml.ws.WebServiceFeature
org.jboss.ws.api.configuration.AbstractClientFeature
com.arjuna.mw.wst11.client.WSTXFeature
public final class WSTXFeature
extends org.jboss.ws.api.configuration.AbstractClientFeature
Web service feature is used to enable or disable WS-AT/WS-BA context propagation for specific port.
- Author:
- Paul Robinson, Gytis Trikleris
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Value to indicate that WSTXFeature is disabled.static final String
Value to indicate that WSTXFeature is enabled.static final String
Key to store WSTXFeature's enabled/disabled value in SOAP header.Fields inherited from class jakarta.xml.ws.WebServiceFeature
enabled
-
Constructor Summary
ConstructorDescriptionDefault constructor creates instance of enabled WSTXFeature.WSTXFeature
(boolean enabled) Parametrised constructor creates either enabled or disabled WSTXFeature based onenabled
parameter. -
Method Summary
Modifier and TypeMethodDescriptionprotected void
initializeBindingProvider
(jakarta.xml.ws.BindingProvider bp) SetsREQUEST_CONTEXT_KEY
value toENABLED_VALUE
if WSTXFeature is enabled.Methods inherited from class org.jboss.ws.api.configuration.AbstractClientFeature
getID, initialize
Methods inherited from class jakarta.xml.ws.WebServiceFeature
isEnabled
-
Field Details
-
REQUEST_CONTEXT_KEY
Key to store WSTXFeature's enabled/disabled value in SOAP header.- See Also:
-
ENABLED_VALUE
Value to indicate that WSTXFeature is enabled.- See Also:
-
DISABLED_VALUE
Value to indicate that WSTXFeature is disabled.- See Also:
-
-
Constructor Details
-
WSTXFeature
public WSTXFeature()Default constructor creates instance of enabled WSTXFeature. -
WSTXFeature
public WSTXFeature(boolean enabled) Parametrised constructor creates either enabled or disabled WSTXFeature based onenabled
parameter.- Parameters:
enabled
- true to create enabled WSTXFeature, false to create disabled WSTXFeature.
-
-
Method Details
-
initializeBindingProvider
protected void initializeBindingProvider(jakarta.xml.ws.BindingProvider bp) SetsREQUEST_CONTEXT_KEY
value toENABLED_VALUE
if WSTXFeature is enabled. SetsREQUEST_CONTEXT_KEY
value toDISABLED_VALUE
if WSTXFeature is disabled andREQUEST_CONTEXT_KEY
value was not already set by another feature.- Overrides:
initializeBindingProvider
in classorg.jboss.ws.api.configuration.AbstractClientFeature
- Parameters:
bp
- binding provider
-