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

    Fields
    Modifier and Type
    Field
    Description
    static 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

    Constructors
    Constructor
    Description
    Default constructor creates instance of enabled WSTXFeature.
    WSTXFeature(boolean enabled)
    Parametrised constructor creates either enabled or disabled WSTXFeature based on enabled parameter.
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    initializeBindingProvider(jakarta.xml.ws.BindingProvider bp)
    Sets REQUEST_CONTEXT_KEY value to ENABLED_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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • REQUEST_CONTEXT_KEY

      public static final String REQUEST_CONTEXT_KEY
      Key to store WSTXFeature's enabled/disabled value in SOAP header.
      See Also:
    • ENABLED_VALUE

      public static final String ENABLED_VALUE
      Value to indicate that WSTXFeature is enabled.
      See Also:
    • DISABLED_VALUE

      public static final String 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 on enabled parameter.
      Parameters:
      enabled - true to create enabled WSTXFeature, false to create disabled WSTXFeature.
  • Method Details

    • initializeBindingProvider

      protected void initializeBindingProvider(jakarta.xml.ws.BindingProvider bp)
      Sets REQUEST_CONTEXT_KEY value to ENABLED_VALUE if WSTXFeature is enabled. Sets REQUEST_CONTEXT_KEY value to DISABLED_VALUE if WSTXFeature is disabled and REQUEST_CONTEXT_KEY value was not already set by another feature.
      Overrides:
      initializeBindingProvider in class org.jboss.ws.api.configuration.AbstractClientFeature
      Parameters:
      bp - binding provider