net.javacrumbs.smock.common
Class TemplateAwareMessageCreator
java.lang.Object
net.javacrumbs.smock.common.MessageCreator
net.javacrumbs.smock.common.TemplateAwareMessageCreator
- All Implemented Interfaces:
- ParametrizableResponseCreator, ParametrizableRequestCreator, org.springframework.ws.test.client.ResponseCreator, org.springframework.ws.test.server.RequestCreator
public class TemplateAwareMessageCreator
- extends MessageCreator
- implements ParametrizableResponseCreator, ParametrizableRequestCreator
MessageResponseCreator that preprocesses response using TemplateProcessor.
- Author:
- Lukas Krecan
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.springframework.ws.test.client.ResponseCreator |
createResponse |
| Methods inherited from interface org.springframework.ws.test.server.RequestCreator |
createRequest |
TemplateAwareMessageCreator
public TemplateAwareMessageCreator(Source response,
Map<String,Object> parameters,
TemplateProcessor templateProcessor)
preprocessSource
protected Source preprocessSource(URI uri,
org.springframework.ws.WebServiceMessage input,
org.springframework.ws.WebServiceMessageFactory messageFactory)
- Description copied from class:
MessageCreator
- To be overriden by subclasses.
- Overrides:
preprocessSource in class MessageCreator
- Returns:
withParameter
public TemplateAwareMessageCreator withParameter(String name,
Object value)
- Description copied from interface:
ParametrizableResponseCreator
- Adds parameter to the
ResponseCreator
- Specified by:
withParameter in interface ParametrizableResponseCreator- Specified by:
withParameter in interface ParametrizableRequestCreator
- Returns:
withParameters
public TemplateAwareMessageCreator withParameters(Map<String,Object> additionalParameters)
- Description copied from interface:
ParametrizableResponseCreator
- Adds parameters to the
ResponseCreator
- Specified by:
withParameters in interface ParametrizableResponseCreator- Specified by:
withParameters in interface ParametrizableRequestCreator
- Returns:
Copyright © 2011. All Rights Reserved.