|
Spring Web Services Framework | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.ws.soap.axiom.AxiomSoapMessageFactory
public class AxiomSoapMessageFactory
Axiom-specific implementation of the WebServiceMessageFactory
interface. Creates AxiomSoapMessages
.
payloadCaching
property to false
(default is true
). This this will read the
contents of the body directly from the stream. However, when this setting is enabled, the payload can only be
read once. This means that any endpoint mappings or interceptors which are based on the message payload
(such as the PayloadRootQNameEndpointMapping
, the PayloadValidatingInterceptor
, or the
PayloadLoggingInterceptor
) cannot be used. Instead, use an endpoint mapping that does not consume the
payload (i.e. the SoapActionEndpointMapping
).
Mostly derived from org.apache.axis2.transport.http.HTTPTransportUtils
and
org.apache.axis2.transport.TransportUtils
, which we cannot use since they are not part of the Axiom
distribution.
AxiomSoapMessage
,
setPayloadCaching(boolean)
Constructor Summary | |
---|---|
AxiomSoapMessageFactory()
Default constructor. |
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
WebServiceMessage |
createWebServiceMessage()
Creates a new, empty WebServiceMessage . |
WebServiceMessage |
createWebServiceMessage(InputStream inputStream)
Reads a WebServiceMessage from the given input stream. |
protected String |
getCharSetEncoding(String contentType)
Returns the character set from the given content type. |
void |
setPayloadCaching(boolean payloadCaching)
Indicates whether the SOAP Body payload should be cached or not. |
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 AxiomSoapMessageFactory()
Method Detail |
---|
public void setPayloadCaching(boolean payloadCaching)
true
. Setting this to
false
will increase performance, but also result in the fact that the message payload can only be
read once.
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 occursprotected String getCharSetEncoding(String contentType)
public 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 |