|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ws.soap.addressing.client.ActionCallback
public class ActionCallback
WebServiceMessageCallback
implementation that sets the WS-Addressing Action
header on the
message.
WebServiceTemplate
:
WebServiceTemplate template = new WebServiceTemplate(messageFactory); Result result = new DOMResult(); template.sendSourceAndReceiveToResult( new StringSource("<content xmlns=\"http://tempuri.org\"/>"), new ActionCallback(new URI("http://tempuri.org/Action")), result);
Constructor Summary | |
---|---|
ActionCallback(String action)
Create a new ActionCallback with the given Action . |
|
ActionCallback(URI action)
Create a new ActionCallback with the given Action . |
|
ActionCallback(URI action,
AddressingVersion version)
Create a new ActionCallback with the given version and Action . |
|
ActionCallback(URI action,
AddressingVersion version,
URI to)
Create a new ActionCallback with the given version, Action , and optional
To . |
Method Summary | |
---|---|
void |
doWithMessage(WebServiceMessage message)
Execute any number of operations on the supplied message . |
URI |
getAction()
Returns the Action . |
EndpointReference |
getFaultTo()
Returns the FaultTo . |
EndpointReference |
getFrom()
Returns the From . |
MessageIdStrategy |
getMessageIdStrategy()
Returns the message id strategy used for creating WS-Addressing MessageIds. |
EndpointReference |
getReplyTo()
Returns the ReplyTo . |
protected URI |
getTo()
Returns the Destination for outgoing messages. |
AddressingVersion |
getVersion()
Returns the WS-Addressing version |
void |
setFaultTo(EndpointReference faultTo)
Sets the FaultTo . |
void |
setFrom(EndpointReference from)
Sets the From . |
void |
setMessageIdStrategy(MessageIdStrategy messageIdStrategy)
Sets the message id strategy used for creating WS-Addressing MessageIds. |
void |
setReplyTo(EndpointReference replyTo)
Sets the ReplyTo . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ActionCallback(String action) throws URISyntaxException
ActionCallback
with the given Action
.
The To
header of the outgoing message will reflect the connection URI
.
The AddressingVersion
is set to Addressing10
.
action
- the value of the action property to set
URISyntaxException
public ActionCallback(URI action)
ActionCallback
with the given Action
.
The To
header of the outgoing message will reflect the connection URI
.
The AddressingVersion
is set to Addressing10
.
action
- the value of the action property to setpublic ActionCallback(URI action, AddressingVersion version)
ActionCallback
with the given version and Action
.
The To
header of the outgoing message will reflect the connection URI
.
action
- the value of the action property to setversion
- the WS-Addressing version to usepublic ActionCallback(URI action, AddressingVersion version, URI to)
ActionCallback
with the given version, Action
, and optional
To
.
action
- the value of the action propertyversion
- the WS-Addressing version to useaction
- the value of the destination propertyMethod Detail |
---|
public AddressingVersion getVersion()
public MessageIdStrategy getMessageIdStrategy()
UuidMessageIdStrategy
is used.
public void setMessageIdStrategy(MessageIdStrategy messageIdStrategy)
UuidMessageIdStrategy
is used.
public URI getAction()
Action
.
MessageAddressingProperties.getAction()
public EndpointReference getFrom()
From
.
MessageAddressingProperties.getFrom()
public void setFrom(EndpointReference from)
From
.
MessageAddressingProperties.getFrom()
public EndpointReference getReplyTo()
ReplyTo
.
MessageAddressingProperties.getReplyTo()
public void setReplyTo(EndpointReference replyTo)
ReplyTo
.
MessageAddressingProperties.getReplyTo()
public EndpointReference getFaultTo()
FaultTo
.
MessageAddressingProperties.getFaultTo()
public void setFaultTo(EndpointReference faultTo)
FaultTo
.
MessageAddressingProperties.getFaultTo()
protected URI getTo()
Destination
for outgoing messages.
Defaults to the connection URI
if no
destination was set.
public void doWithMessage(WebServiceMessage message) throws IOException, TransformerException
WebServiceMessageCallback
message
.
doWithMessage
in interface WebServiceMessageCallback
message
- the message
IOException
- in case of I/O errors
TransformerException
- in case of transformation errors
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |