Spring Web Services Framework

org.springframework.ws.pox.dom
Class DomPoxMessageFactory

java.lang.Object
  extended by org.springframework.xml.transform.TransformerObjectSupport
      extended by org.springframework.ws.pox.dom.DomPoxMessageFactory
All Implemented Interfaces:
WebServiceMessageFactory

public class DomPoxMessageFactory
extends TransformerObjectSupport
implements WebServiceMessageFactory

Implementation of the WebServiceMessageFactory interface that creates a DomPoxMessage.

Since:
1.0.0
Author:
Arjen Poutsma
See Also:
DomPoxMessage

Field Summary
static String DEFAULT_CONTENT_TYPE
          The default content type for the POX messages.
 
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport
logger
 
Constructor Summary
DomPoxMessageFactory()
           
 
Method Summary
 DomPoxMessage createWebServiceMessage()
          Creates a new, empty WebServiceMessage.
 DomPoxMessage createWebServiceMessage(InputStream inputStream)
          Reads a WebServiceMessage from the given input stream.
 void setContentType(String contentType)
          Sets the content-type for the DomPoxMessage.
 void setExpandEntityReferences(boolean expandEntityRef)
          Set if the XML parser should expand entity reference nodes.
 void setNamespaceAware(boolean namespaceAware)
          Set whether or not the XML parser should be XML namespace aware.
 void setValidating(boolean validating)
          Set if the XML parser should validate the document.
 
Methods inherited from class org.springframework.xml.transform.TransformerObjectSupport
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_CONTENT_TYPE

public static final String DEFAULT_CONTENT_TYPE
The default content type for the POX messages.

See Also:
Constant Field Values
Constructor Detail

DomPoxMessageFactory

public DomPoxMessageFactory()
Method Detail

setContentType

public void setContentType(String contentType)
Sets the content-type for the DomPoxMessage.


setNamespaceAware

public void setNamespaceAware(boolean namespaceAware)
Set whether or not the XML parser should be XML namespace aware. Default is true.


setValidating

public void setValidating(boolean validating)
Set if the XML parser should validate the document. Default is false.


setExpandEntityReferences

public void setExpandEntityReferences(boolean expandEntityRef)
Set if the XML parser should expand entity reference nodes. Default is false.


createWebServiceMessage

public DomPoxMessage createWebServiceMessage()
Description copied from interface: WebServiceMessageFactory
Creates a new, empty WebServiceMessage.

Specified by:
createWebServiceMessage in interface WebServiceMessageFactory
Returns:
the empty message

createWebServiceMessage

public DomPoxMessage createWebServiceMessage(InputStream inputStream)
                                      throws IOException
Description copied from interface: WebServiceMessageFactory
Reads a WebServiceMessage from the given input stream.

If the given stream is an instance of TransportInputStream, the headers will be read from the request.

Specified by:
createWebServiceMessage in interface WebServiceMessageFactory
Parameters:
inputStream - the input stream to read the message from
Returns:
the created message
Throws:
IOException - if an I/O exception occurs

Spring Web Services Framework

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