Spring Web Services Framework

org.springframework.ws
Class MockWebServiceMessage

java.lang.Object
  extended by org.springframework.ws.MockWebServiceMessage
All Implemented Interfaces:
org.springframework.ws.FaultAwareWebServiceMessage, org.springframework.ws.WebServiceMessage

public class MockWebServiceMessage
extends Object
implements org.springframework.ws.FaultAwareWebServiceMessage

Mock implementation of the WebServiceMessage interface.

Since:
1.0.0
Author:
Arjen Poutsma

Constructor Summary
MockWebServiceMessage()
           
MockWebServiceMessage(Resource resource)
           
MockWebServiceMessage(Source source)
           
MockWebServiceMessage(String content)
           
MockWebServiceMessage(StringBuffer content)
           
 
Method Summary
 String getFaultReason()
           
 String getPayloadAsString()
           
 Result getPayloadResult()
           
 Source getPayloadSource()
           
 boolean hasFault()
           
 void setFault(boolean fault)
           
 void setFaultReason(String faultReason)
           
 void setPayload(InputStreamSource inputStreamSource)
           
 void setPayload(String content)
           
 String toString()
           
 void writeTo(OutputStream outputStream)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MockWebServiceMessage

public MockWebServiceMessage()

MockWebServiceMessage

public MockWebServiceMessage(Source source)
                      throws TransformerException
Throws:
TransformerException

MockWebServiceMessage

public MockWebServiceMessage(Resource resource)
                      throws IOException,
                             TransformerException
Throws:
IOException
TransformerException

MockWebServiceMessage

public MockWebServiceMessage(StringBuffer content)

MockWebServiceMessage

public MockWebServiceMessage(String content)
Method Detail

getPayloadAsString

public String getPayloadAsString()

setPayload

public void setPayload(InputStreamSource inputStreamSource)
                throws IOException
Throws:
IOException

setPayload

public void setPayload(String content)

getPayloadResult

public Result getPayloadResult()
Specified by:
getPayloadResult in interface org.springframework.ws.WebServiceMessage

getPayloadSource

public Source getPayloadSource()
Specified by:
getPayloadSource in interface org.springframework.ws.WebServiceMessage

hasFault

public boolean hasFault()
Specified by:
hasFault in interface org.springframework.ws.FaultAwareWebServiceMessage

setFault

public void setFault(boolean fault)

getFaultReason

public String getFaultReason()
Specified by:
getFaultReason in interface org.springframework.ws.FaultAwareWebServiceMessage

setFaultReason

public void setFaultReason(String faultReason)

writeTo

public void writeTo(OutputStream outputStream)
             throws IOException
Specified by:
writeTo in interface org.springframework.ws.WebServiceMessage
Throws:
IOException

toString

public String toString()
Overrides:
toString in class Object

Spring Web Services Framework

Copyright � 2005-2008 The Spring Web Services Framework. All Rights Reserved.