Package com.sun.xml.ws.api.addressing
Class OneWayFeature
java.lang.Object
jakarta.xml.ws.WebServiceFeature
com.sun.xml.ws.api.addressing.OneWayFeature
Unsupported RI extension to work around an issue in WSIT.
This feature is not meant to be used by a common Web service developer as there is no need to send the above mentioned header for a one-way operation. But these properties may need to be sent in certain middleware Web services.
This feature allows ReplyTo, From and RelatesTo Message Addressing Properties to be added for all messages that are sent from the port configured with this annotation. All operations are assumed to be one-way, and this feature should be used for one-way operations only. If a non-null ReplyTo is specified, then MessageID property is also added.
- Author:
- Arun Gupta
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Constant value identifying theOneWayFeature
Fields inherited from class jakarta.xml.ws.WebServiceFeature
enabled
-
Constructor Summary
ConstructorsConstructorDescriptionCreate anOneWayFeature
.OneWayFeature
(boolean enabled) Create anOneWayFeature
OneWayFeature
(boolean enabled, WSEndpointReference replyTo) Create anOneWayFeature
OneWayFeature
(boolean enabled, WSEndpointReference replyTo, WSEndpointReference from, String relatesTo) Create anOneWayFeature
-
Method Summary
Modifier and TypeMethodDescriptionstatic WSEndpointReference
enableSslForEpr
(WSEndpointReference epr, String sslHost, int sslPort) Calculate a new EPR using an existing one and substituting SSL specific host and port values.Getter for wsa:FaultTo headerWSEndpointReference
.getFaultTo
(boolean ssl) getFrom()
Getter for wsa:From headerWSEndpointReference
.getID()
Getter for MessageID for wsa:RelatesTo header.Getter for wsa:ReplyTo headerWSEndpointReference
.getReplyTo
(boolean ssl) boolean
boolean
Getter for whether async is to be used with sync invokevoid
setFaultTo
(WSEndpointReference address) Setter for wsa:FaultTo headerWSEndpointReference
.void
setFrom
(WSEndpointReference address) Setter for wsa:From headerWSEndpointReference
.void
setRelatesToID
(String id) Setter for MessageID for wsa:RelatesTo header.void
setReplyTo
(WSEndpointReference address) Setter for wsa:ReplyTo headerWSEndpointReference
.void
setSslFaultTo
(WSEndpointReference sslFaultTo) void
setSslReplyTo
(WSEndpointReference sslReplyTo) void
setUseAsyncWithSyncInvoke
(boolean useAsyncWithSyncInvoke) Setter for whether async is to be used with sync invokeMethods inherited from class jakarta.xml.ws.WebServiceFeature
isEnabled
-
Field Details
-
ID
Constant value identifying theOneWayFeature
- See Also:
-
-
Constructor Details
-
OneWayFeature
public OneWayFeature()Create anOneWayFeature
. The instance created will be enabled. -
OneWayFeature
public OneWayFeature(boolean enabled) Create anOneWayFeature
- Parameters:
enabled
- specifies whether this feature should be enabled or not.
-
OneWayFeature
Create anOneWayFeature
- Parameters:
enabled
- specifies whether this feature should be enabled or not.replyTo
- specifies theWSEndpointReference
of wsa:ReplyTo header.
-
OneWayFeature
public OneWayFeature(boolean enabled, WSEndpointReference replyTo, WSEndpointReference from, String relatesTo) Create anOneWayFeature
- Parameters:
enabled
- specifies whether this feature should be enabled or not.replyTo
- specifies theWSEndpointReference
of wsa:ReplyTo header.from
- specifies theWSEndpointReference
of wsa:From header.relatesTo
- specifies the MessageID to be used for wsa:RelatesTo header.
-
OneWayFeature
-
-
Method Details
-
getMessageId
-
getID
- Specified by:
getID
in classjakarta.xml.ws.WebServiceFeature
-
hasSslEprs
public boolean hasSslEprs() -
getReplyTo
Getter for wsa:ReplyTo headerWSEndpointReference
.- Returns:
- address of the wsa:ReplyTo header
-
getReplyTo
-
setReplyTo
Setter for wsa:ReplyTo headerWSEndpointReference
. -
getSslReplyTo
-
setSslReplyTo
-
getFrom
Getter for wsa:From headerWSEndpointReference
.- Returns:
- address of the wsa:From header
-
setFrom
Setter for wsa:From headerWSEndpointReference
.- Parameters:
address
- of the wsa:From header
-
getRelatesToID
Getter for MessageID for wsa:RelatesTo header.- Returns:
- address of the wsa:FaultTo header
-
setRelatesToID
Setter for MessageID for wsa:RelatesTo header. -
getFaultTo
Getter for wsa:FaultTo headerWSEndpointReference
.- Returns:
- address of the wsa:FaultTo header
-
getFaultTo
-
setFaultTo
Setter for wsa:FaultTo headerWSEndpointReference
.- Parameters:
address
- of the wsa:FaultTo header
-
getSslFaultTo
-
setSslFaultTo
-
isUseAsyncWithSyncInvoke
public boolean isUseAsyncWithSyncInvoke()Getter for whether async is to be used with sync invoke- Returns:
- whether async is to be used with sync invoke
-
setUseAsyncWithSyncInvoke
public void setUseAsyncWithSyncInvoke(boolean useAsyncWithSyncInvoke) Setter for whether async is to be used with sync invoke- Parameters:
useAsyncWithSyncInvoke
- whether async is to be used with sync invoke
-
enableSslForEpr
public static WSEndpointReference enableSslForEpr(@NotNull WSEndpointReference epr, @Nullable String sslHost, int sslPort) Calculate a new EPR using an existing one and substituting SSL specific host and port values.- Parameters:
epr
- Existing EPR that will be the starting point for the SSL versionsslHost
- New SSL host or null if the existing host should be usedsslPort
- New SSL port or -1 if the existing port should be used
-