public abstract class RequestCreators extends Object
RequestCreator
classes. Typically used to provide input for MockWebServiceClient.sendRequest(RequestCreator)
.Modifier and Type | Method and Description |
---|---|
static RequestCreator |
withPayload(org.springframework.core.io.Resource payload)
Create a request with the given
Resource XML as payload. |
static RequestCreator |
withPayload(Source payload)
Create a request with the given
Source XML as payload. |
static RequestCreator |
withSoapEnvelope(org.springframework.core.io.Resource soapEnvelope)
Create a request with the given
Resource XML as SOAP envelope. |
static RequestCreator |
withSoapEnvelope(Source soapEnvelope)
Create a request with the given
Source XML as SOAP envelope. |
public static RequestCreator withPayload(Source payload)
Source
XML as payload.payload
- the request payloadpublic static RequestCreator withPayload(org.springframework.core.io.Resource payload) throws IOException
Resource
XML as payload.payload
- the request payloadIOException
public static RequestCreator withSoapEnvelope(Source soapEnvelope)
Source
XML as SOAP envelope.soapEnvelope
- the request SOAP envelopepublic static RequestCreator withSoapEnvelope(org.springframework.core.io.Resource soapEnvelope) throws IOException
Resource
XML as SOAP envelope.soapEnvelope
- the request SOAP envelopeIOException