|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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 . |
protected URI |
getTo()
Returns the Destination for outgoing messages. |
void |
setFaultTo(EndpointReference faultTo)
|
void |
setFrom(EndpointReference from)
|
void |
setMessageIdStrategy(MessageIdStrategy messageIdStrategy)
Sets the message id strategy used for creating WS-Addressing MessageIds. |
void |
setReplyTo(EndpointReference 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 void setMessageIdStrategy(MessageIdStrategy messageIdStrategy)
UuidMessageIdStrategy
is used on Java 5 and higher, and the RandomGuidMessageIdStrategy
on Java 1.4.
public void setFrom(EndpointReference from)
public void setReplyTo(EndpointReference replyTo)
public void setFaultTo(EndpointReference faultTo)
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 |