Class ActionCallback
java.lang.Object
org.springframework.ws.soap.addressing.client.ActionCallback
- All Implemented Interfaces:
- WebServiceMessageCallback
WebServiceMessageCallback implementation that sets the WS-Addressing Action header on the message.
 
 A usage example with 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);
 - Since:
- 1.0.0
- Author:
- Arjen Poutsma, Leandro Quiroga
- 
Constructor SummaryConstructorsConstructorDescriptionActionCallback(String action) Create a newActionCallbackwith the givenAction.ActionCallback(URI action) Create a newActionCallbackwith the givenAction.ActionCallback(URI action, AddressingVersion version) Create a newActionCallbackwith the given version andAction.ActionCallback(URI action, AddressingVersion version, URI to) Create a newActionCallbackwith the given version,Action, and optionalTo.
- 
Method SummaryModifier and TypeMethodDescriptionvoiddoWithMessage(WebServiceMessage message) Execute any number of operations on the suppliedmessage.Returns theAction.Returns theFaultTo.getFrom()Returns theFrom.Returns the message id strategy used for creating WS-Addressing MessageIds.Returns theReplyTo.protected URIgetTo()Returns theDestinationfor outgoing messages.Returns the WS-Addressing versionvoidsetFaultTo(EndpointReference faultTo) Sets theFaultTo.voidsetFrom(EndpointReference from) Sets theFrom.voidsetMessageIdStrategy(MessageIdStrategy messageIdStrategy) Sets the message id strategy used for creating WS-Addressing MessageIds.voidsetReplyTo(EndpointReference replyTo) Sets theReplyTo.voidsetShouldInitializeTo(boolean shouldInitializeTo) Set whether to initialize theToheader by default or not.
- 
Constructor Details- 
ActionCallbackCreate a newActionCallbackwith the givenAction.The Toheader of the outgoing message will reflect theconnection URI.The AddressingVersionis set toAddressing10.- Parameters:
- action- the value of the action property to set
- Throws:
- URISyntaxException
 
- 
ActionCallbackCreate a newActionCallbackwith the givenAction.The Toheader of the outgoing message will reflect theconnection URI.The AddressingVersionis set toAddressing10.- Parameters:
- action- the value of the action property to set
 
- 
ActionCallbackCreate a newActionCallbackwith the given version andAction.The Toheader of the outgoing message will reflect theconnection URI.- Parameters:
- action- the value of the action property to set
- version- the WS-Addressing version to use
 
- 
ActionCallbackCreate a newActionCallbackwith the given version,Action, and optionalTo.- Parameters:
- action- the value of the action property
- version- the WS-Addressing version to use
- to- the value of the destination property
 
 
- 
- 
Method Details- 
getVersionReturns the WS-Addressing version
- 
getMessageIdStrategyReturns the message id strategy used for creating WS-Addressing MessageIds.By default, the UuidMessageIdStrategyis used.
- 
setMessageIdStrategySets the message id strategy used for creating WS-Addressing MessageIds.By default, the UuidMessageIdStrategyis used.
- 
getActionReturns theAction.- See Also:
 
- 
getFromReturns theFrom.- See Also:
 
- 
setFromSets theFrom.- See Also:
 
- 
getReplyToReturns theReplyTo.- See Also:
 
- 
setReplyToSets theReplyTo.- See Also:
 
- 
getFaultToReturns theFaultTo.- See Also:
 
- 
setFaultToSets theFaultTo.- See Also:
 
- 
getToReturns theDestinationfor outgoing messages.Defaults to the connection URIif no destination was set.
- 
setShouldInitializeTopublic void setShouldInitializeTo(boolean shouldInitializeTo) Set whether to initialize theToheader by default or not.
- 
doWithMessageDescription copied from interface:WebServiceMessageCallbackExecute any number of operations on the suppliedmessage.- Specified by:
- doWithMessagein interface- WebServiceMessageCallback
- Parameters:
- message- the message
- Throws:
- IOException- in case of I/O errors
- TransformerException- in case of transformation errors
 
 
-