Class PayloadMessageCreator
java.lang.Object
org.springframework.ws.test.support.creator.AbstractMessageCreator
org.springframework.ws.test.support.creator.PayloadMessageCreator
- All Implemented Interfaces:
WebServiceMessageCreator
Implementation of
WebServiceMessageCreator that creates a request based on a
Source.- Since:
- 2.0
-
Constructor Summary
ConstructorsConstructorDescriptionPayloadMessageCreator(Source payload) Creates a new instance of thePayloadMessageCreatorwith the given payload source. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoWithMessage(org.springframework.ws.WebServiceMessage message) Abstract template method, invoked byAbstractMessageCreator.createMessage(WebServiceMessageFactory)after a message has been created.Methods inherited from class org.springframework.ws.test.support.creator.AbstractMessageCreator
createMessage
-
Constructor Details
-
PayloadMessageCreator
Creates a new instance of thePayloadMessageCreatorwith the given payload source.- Parameters:
payload- the payload source
-
-
Method Details
-
doWithMessage
Description copied from class:AbstractMessageCreatorAbstract template method, invoked byAbstractMessageCreator.createMessage(WebServiceMessageFactory)after a message has been created.- Specified by:
doWithMessagein classAbstractMessageCreator- Parameters:
message- the message- Throws:
IOException- in case of I/O errors
-