public class PlainTextBuilder extends Object implements TextMessageBuilder, DataSourceMessageBuilder
This builder processes the input message as plain text and wraps
the text in a wrapper element. The name of the wrapper element can
be configured as a service parameter (see BaseConstants.WRAPPER_PARAM).
It defaults to BaseConstants.DEFAULT_TEXT_WRAPPER.
If the content is provided as an InputStream and the content type specifies a
charset parameter (e.g. text/plain; charset=ISO-8859-15),
this information is used to decode the text.
If the content is provided as an InputStream but no charset parameter
is specified on the content type, the default charset encoding specified by
MessageContext.DEFAULT_CHAR_SET_ENCODING is used.
| Constructor and Description |
|---|
PlainTextBuilder() |
| Modifier and Type | Method and Description |
|---|---|
org.apache.axiom.om.OMElement |
processDocument(javax.activation.DataSource dataSource,
String contentType,
org.apache.axis2.context.MessageContext msgContext) |
org.apache.axiom.om.OMElement |
processDocument(InputStream inputStream,
String contentType,
org.apache.axis2.context.MessageContext msgContext) |
org.apache.axiom.om.OMElement |
processDocument(Reader reader,
String contentType,
org.apache.axis2.context.MessageContext msgContext) |
org.apache.axiom.om.OMElement |
processDocument(String content,
String contentType,
org.apache.axis2.context.MessageContext msgContext) |
public org.apache.axiom.om.OMElement processDocument(InputStream inputStream, String contentType, org.apache.axis2.context.MessageContext msgContext) throws org.apache.axis2.AxisFault
processDocument in interface org.apache.axis2.builder.Builderorg.apache.axis2.AxisFaultpublic org.apache.axiom.om.OMElement processDocument(Reader reader, String contentType, org.apache.axis2.context.MessageContext msgContext) throws org.apache.axis2.AxisFault
processDocument in interface TextMessageBuilderorg.apache.axis2.AxisFaultpublic org.apache.axiom.om.OMElement processDocument(String content, String contentType, org.apache.axis2.context.MessageContext msgContext) throws org.apache.axis2.AxisFault
processDocument in interface TextMessageBuilderorg.apache.axis2.AxisFaultpublic org.apache.axiom.om.OMElement processDocument(javax.activation.DataSource dataSource,
String contentType,
org.apache.axis2.context.MessageContext msgContext)
throws org.apache.axis2.AxisFault
processDocument in interface DataSourceMessageBuilderorg.apache.axis2.AxisFaultCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.