public class DomPoxMessageFactory extends TransformerObjectSupport implements WebServiceMessageFactory
WebServiceMessageFactory
interface that creates a DomPoxMessage
.DomPoxMessage
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_CONTENT_TYPE
The default content type for the POX messages.
|
logger
Constructor and Description |
---|
DomPoxMessageFactory()
Use default
DocumentBuilderFactory . |
DomPoxMessageFactory(DocumentBuilderFactory documentBuilderFactory)
Provide your own
DocumentBuilderFactory . |
Modifier and Type | Method and Description |
---|---|
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.
|
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
public static final String DEFAULT_CONTENT_TYPE
public DomPoxMessageFactory()
DocumentBuilderFactory
.public DomPoxMessageFactory(DocumentBuilderFactory documentBuilderFactory)
DocumentBuilderFactory
.documentBuilderFactory
- public void setContentType(String contentType)
DomPoxMessage
.public void setNamespaceAware(boolean namespaceAware)
true
.public void setValidating(boolean validating)
false
.public void setExpandEntityReferences(boolean expandEntityRef)
false
.public DomPoxMessage createWebServiceMessage()
WebServiceMessageFactory
WebServiceMessage
.createWebServiceMessage
in interface WebServiceMessageFactory
public DomPoxMessage 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 input stream to read the message fromIOException
- if an I/O exception occursCopyright © 2020 Pivotal Software. All rights reserved.