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(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(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(Resource payload) throws IOException
Resource XML as payload.payload - the request payloadIOExceptionpublic static RequestCreator withSoapEnvelope(Source soapEnvelope)
Source XML as SOAP envelope.soapEnvelope - the request SOAP envelopepublic static RequestCreator withSoapEnvelope(Resource soapEnvelope) throws IOException
Resource XML as SOAP envelope.soapEnvelope - the request SOAP envelopeIOException