|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.ws.soap.saaj.SaajSoapMessageFactory
public class SaajSoapMessageFactory
SAAJ-specific implementation of the WebServiceMessageFactory
.
Wraps a SAAJ MessageFactory
. This factory will use SAAJ 1.3 when found, or fall back to SAAJ 1.2 or even
1.1.
MessageFactory
can be injected to the constructor
, or by the setMessageFactory(javax.xml.soap.MessageFactory)
property. When a SAAJ message
factory is injected, the setSoapVersion(org.springframework.ws.soap.SoapVersion)
property is ignored.
SaajSoapMessage
Constructor Summary | |
---|---|
SaajSoapMessageFactory()
Default, empty constructor. |
|
SaajSoapMessageFactory(MessageFactory messageFactory)
Constructor that takes a message factory as an argument. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
WebServiceMessage |
createWebServiceMessage()
Creates a new, empty WebServiceMessage . |
WebServiceMessage |
createWebServiceMessage(InputStream inputStream)
Reads a WebServiceMessage from the given input stream. |
MessageFactory |
getMessageFactory()
Returns the SAAJ MessageFactory used. |
void |
setMessageFactory(MessageFactory messageFactory)
Sets the SAAJ MessageFactory . |
void |
setSoapVersion(SoapVersion version)
Sets the SOAP Version used by this factory. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SaajSoapMessageFactory()
public SaajSoapMessageFactory(MessageFactory messageFactory)
Method Detail |
---|
public MessageFactory getMessageFactory()
MessageFactory
used.
public void setMessageFactory(MessageFactory messageFactory)
MessageFactory
.
public void setSoapVersion(SoapVersion version)
SoapMessageFactory
setSoapVersion
in interface SoapMessageFactory
version
- the version constantSoapVersion.SOAP_11
,
SoapVersion.SOAP_12
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public WebServiceMessage createWebServiceMessage()
WebServiceMessageFactory
WebServiceMessage
.
createWebServiceMessage
in interface WebServiceMessageFactory
public WebServiceMessage createWebServiceMessage(InputStream inputStream) throws IOException
WebServiceMessageFactory
WebServiceMessage
from the given input stream.
If the given stream is an instance of TransportInputStream
, the headers will be read from the request.
createWebServiceMessage
in interface WebServiceMessageFactory
inputStream
- the inputstream to read the message from
IOException
- if an I/O exception occurspublic String toString()
toString
in class Object
|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |