org.springframework.ws.test.server
Class RequestCreators

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

public abstract class RequestCreators
extends java.lang.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(org.springframework.core.io.Resource payload)
          Create a request with the given Resource XML as payload.
static RequestCreator withPayload(javax.xml.transform.Source payload)
          Create a request with the given Source XML as payload.
 
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(javax.xml.transform.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(org.springframework.core.io.Resource payload)
                                  throws java.io.IOException
Create a request with the given Resource XML as payload.

Parameters:
payload - the request payload
Returns:
the request creator
Throws:
java.io.IOException


Copyright © 2011. All Rights Reserved.