@ManagedData public class OneWayFeature extends WebServiceFeature
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.
Modifier and Type | Field and Description |
---|---|
static String |
ID
Constant value identifying the
OneWayFeature |
enabled
Constructor and Description |
---|
OneWayFeature()
Create an
OneWayFeature . |
OneWayFeature(AddressingPropertySet a,
AddressingVersion v) |
OneWayFeature(boolean enabled)
Create an
OneWayFeature |
OneWayFeature(boolean enabled,
WSEndpointReference replyTo)
Create an
OneWayFeature |
OneWayFeature(boolean enabled,
WSEndpointReference replyTo,
WSEndpointReference from,
String relatesTo)
Create an
OneWayFeature |
Modifier and Type | Method and Description |
---|---|
static WSEndpointReference |
enableSslForEpr(WSEndpointReference epr,
String sslHost,
int sslPort)
Calculate a new EPR using an existing one and substituting SSL specific
host and port values.
|
WSEndpointReference |
getFaultTo()
Getter for wsa:FaultTo header
WSEndpointReference . |
WSEndpointReference |
getFaultTo(boolean ssl) |
WSEndpointReference |
getFrom()
Getter for wsa:From header
WSEndpointReference . |
String |
getID() |
String |
getMessageId() |
String |
getRelatesToID()
Getter for MessageID for wsa:RelatesTo header.
|
WSEndpointReference |
getReplyTo()
Getter for wsa:ReplyTo header
WSEndpointReference . |
WSEndpointReference |
getReplyTo(boolean ssl) |
WSEndpointReference |
getSslFaultTo() |
WSEndpointReference |
getSslReplyTo() |
boolean |
hasSslEprs() |
boolean |
isUseAsyncWithSyncInvoke()
Getter for whether async is to be used with sync invoke
|
void |
setFaultTo(WSEndpointReference address)
Setter for wsa:FaultTo header
WSEndpointReference . |
void |
setFrom(WSEndpointReference address)
Setter for wsa:From header
WSEndpointReference . |
void |
setRelatesToID(String id)
Setter for MessageID for wsa:RelatesTo header.
|
void |
setReplyTo(WSEndpointReference address)
Setter for wsa:ReplyTo header
WSEndpointReference . |
void |
setSslFaultTo(WSEndpointReference sslFaultTo) |
void |
setSslReplyTo(WSEndpointReference sslReplyTo) |
void |
setUseAsyncWithSyncInvoke(boolean useAsyncWithSyncInvoke)
Setter for whether async is to be used with sync invoke
|
isEnabled
public static final String ID
OneWayFeature
public OneWayFeature()
OneWayFeature
. The instance created will be enabled.public OneWayFeature(boolean enabled)
OneWayFeature
enabled
- specifies whether this feature should
be enabled or not.public OneWayFeature(boolean enabled, WSEndpointReference replyTo)
OneWayFeature
enabled
- specifies whether this feature should be enabled or not.replyTo
- specifies the WSEndpointReference
of wsa:ReplyTo header.public OneWayFeature(boolean enabled, WSEndpointReference replyTo, WSEndpointReference from, String relatesTo)
OneWayFeature
enabled
- specifies whether this feature should be enabled or not.replyTo
- specifies the WSEndpointReference
of wsa:ReplyTo header.from
- specifies the WSEndpointReference
of wsa:From header.relatesTo
- specifies the MessageID to be used for wsa:RelatesTo header.public OneWayFeature(AddressingPropertySet a, AddressingVersion v)
public String getMessageId()
@ManagedAttribute public String getID()
getID
in class WebServiceFeature
public boolean hasSslEprs()
@ManagedAttribute public WSEndpointReference getReplyTo()
WSEndpointReference
.public WSEndpointReference getReplyTo(boolean ssl)
public void setReplyTo(WSEndpointReference address)
WSEndpointReference
.address
- public WSEndpointReference getSslReplyTo()
public void setSslReplyTo(WSEndpointReference sslReplyTo)
@ManagedAttribute public WSEndpointReference getFrom()
WSEndpointReference
.public void setFrom(WSEndpointReference address)
WSEndpointReference
.address
- of the wsa:From header@ManagedAttribute public String getRelatesToID()
public void setRelatesToID(String id)
id
- public WSEndpointReference getFaultTo()
WSEndpointReference
.public WSEndpointReference getFaultTo(boolean ssl)
public void setFaultTo(WSEndpointReference address)
WSEndpointReference
.address
- of the wsa:FaultTo headerpublic WSEndpointReference getSslFaultTo()
public void setSslFaultTo(WSEndpointReference sslFaultTo)
public boolean isUseAsyncWithSyncInvoke()
public void setUseAsyncWithSyncInvoke(boolean useAsyncWithSyncInvoke)
useAsyncWithSyncInvoke
- whether async is to be used with sync invokepublic static WSEndpointReference enableSslForEpr(@NotNull WSEndpointReference epr, @Nullable String sslHost, int sslPort)
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 usedCopyright © 2015 Oracle Corporation. All rights reserved.