Spring Web Services Framework

org.springframework.ws.test.server
Class RequestCreators

java.lang.Object
  extended by org.springframework.ws.test.server.RequestCreators

public abstract class RequestCreators
extends Object

Factory methods for RequestCreator classes. Typically used to provide input for MockWebServiceClient.sendRequest(RequestCreator).

Since:
2.0
Author:
Arjen Poutsma

Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

withPayload

public static RequestCreator withPayload(Source payload)
Create a request with the given Source XML as payload.

Parameters:
payload - the request payload
Returns:
the request creator

withPayload

public static RequestCreator withPayload(Resource payload)
                                  throws IOException
Create a request with the given Resource XML as payload.

Parameters:
payload - the request payload
Returns:
the request creator
Throws:
IOException

withSoapEnvelope

public static RequestCreator withSoapEnvelope(Source soapEnvelope)
Create a request with the given Source XML as SOAP envelope.

Parameters:
soapEnvelope - the request SOAP envelope
Returns:
the request creator
Since:
2.1.1

withSoapEnvelope

public static RequestCreator withSoapEnvelope(Resource soapEnvelope)
                                       throws IOException
Create a request with the given Resource XML as SOAP envelope.

Parameters:
soapEnvelope - the request SOAP envelope
Returns:
the request creator
Throws:
IOException
Since:
2.1.1

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.