Package com.sun.xml.ws.api.tx.at
Class TransactionalFeature
java.lang.Object
jakarta.xml.ws.WebServiceFeature
com.sun.xml.ws.api.tx.at.TransactionalFeature
This feature represents the use of WS-AT with a
web service.
The following describes the affects of this feature with respect to being enabled or disabled:
- ENABLED: In this Mode, WS-AT will be enabled.
- DISABLED: In this Mode, WS-AT will be disabled
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant value identifying the TransactionalFeatureFields inherited from class jakarta.xml.ws.WebServiceFeature
enabled -
Constructor Summary
ConstructorsConstructorDescriptionCreate anTransactionalFeature.TransactionalFeature(boolean enabled) Create anTransactionalFeatureTransactionalFeature(boolean enabled, Transactional.TransactionFlowType value, Transactional.Version version) -
Method Summary
Modifier and TypeMethodDescriptionReturns the default Transaction flow type for all operations.getFlowType(String operationName) Returns the Transaction flow type for a given operation.return a map listing the Transactional flow options for operations.getID()Returns the version of WS-AT to be used.booleanReturnstrueif WS-AT is enabled on the given operation.booleanTransactional Feature has two modes, explicit Mode or implicit Mode.voidsetEnabled(boolean enabled) Enable/disable this feature at port levelvoidsetEnabled(String operationName, boolean enabled) Enable/disable this feature on a given operationvoidsetExplicitMode(boolean explicitMode) Change the Transactional Feature modevoidsetFlowType(Transactional.TransactionFlowType flowType) Set the default Transaction flow type for all operations.voidsetFlowType(String operationName, Transactional.TransactionFlowType flowType) Set the Transaction flow type for a given wsdl:operation.voidsetVersion(Transactional.Version version) Set the version of WS-AT to be used.Methods inherited from class jakarta.xml.ws.WebServiceFeature
isEnabled
-
Field Details
-
ID
Constant value identifying the TransactionalFeature- See Also:
-
-
Constructor Details
-
TransactionalFeature
public TransactionalFeature(boolean enabled, Transactional.TransactionFlowType value, Transactional.Version version) -
TransactionalFeature
public TransactionalFeature()Create anTransactionalFeature. The instance created will be enabled. -
TransactionalFeature
public TransactionalFeature(boolean enabled) Create anTransactionalFeature- Parameters:
enabled- specifies whether this feature should be enabled or not.
-
-
Method Details
-
getFlowType
Returns the default Transaction flow type for all operations.- Returns:
- Transactional.TransactionFlowType
-
getFlowType
Returns the Transaction flow type for a given operation.- Returns:
- Transactional.TransactionFlowType
-
setFlowType
Set the default Transaction flow type for all operations. -
setFlowType
Set the Transaction flow type for a given wsdl:operation.- Parameters:
operationName- the local part of wsdl:oprationflowType- Transaction flow type
-
getID
- Specified by:
getIDin classWebServiceFeature
-
setEnabled
public void setEnabled(boolean enabled) Enable/disable this feature at port level -
setEnabled
Enable/disable this feature on a given operation- Parameters:
operationName- the local part of operation.
-
isEnabled
Returnstrueif WS-AT is enabled on the given operation.- Parameters:
operationName- the local part of wsdl:operation- Returns:
trueif and only if the WS-AT is enabled on the given operation.
-
getVersion
Returns the version of WS-AT to be used.- Returns:
- Transactional.Version
-
setVersion
Set the version of WS-AT to be used.- Parameters:
version- the version of WS-AT to be used.
-
getFlowTypeMap
return a map listing the Transactional flow options for operations.- Returns:
- a mapping listing the Transactional flow options explicit on operations.
-
getEnabledMap
- Returns:
- a mapping listing the transactional enabled attributes explicitly set on operations.
-
isExplicitMode
public boolean isExplicitMode()Transactional Feature has two modes, explicit Mode or implicit Mode. In the implicit Mode, the Transactional Feature can be enabled at port level and be inherited or override at operation level. In the explicit Mode, transactional flow option can only specified and enabled at operation level. the default is explicit Mode.- Returns:
- whether this Transactional Feature is in explicit mode.
-
setExplicitMode
public void setExplicitMode(boolean explicitMode) Change the Transactional Feature mode- Parameters:
explicitMode- whether set to explicit Mode.
-