public class TextMessageBuilderAdapter extends Object implements TextMessageBuilder
TextMessageBuilder interface to an
existing Builder.
It implements the TextMessageBuilder.processDocument(Reader, String, MessageContext)
and TextMessageBuilder.processDocument(String, String, MessageContext) by converting
the character stream to a byte stream using ReaderInputStream.
TODO: specifying encoding| Constructor and Description |
|---|
TextMessageBuilderAdapter(Builder builder) |
| Modifier and Type | Method and Description |
|---|---|
org.apache.axiom.om.OMElement |
processDocument(InputStream inputStream,
String contentType,
MessageContext messageContext)
Process a message.
|
org.apache.axiom.om.OMElement |
processDocument(Reader reader,
String contentType,
MessageContext messageContext) |
org.apache.axiom.om.OMElement |
processDocument(String content,
String contentType,
MessageContext messageContext) |
public TextMessageBuilderAdapter(Builder builder)
public org.apache.axiom.om.OMElement processDocument(InputStream inputStream, String contentType, MessageContext messageContext) throws AxisFault
BuilderThe raw content of the message is provided as an input stream. It is the responsibility of the caller (typically a transport implementation) to close the stream after the message has been processed (more precisely after the SOAP infoset returned by this method is no longer used). This implies that implementations are not required to consume the input stream during the execution of this method. This enables deferred parsing of the message.
processDocument in interface BuilderinputStream - the byte stream with the raw payloadAxisFaultpublic org.apache.axiom.om.OMElement processDocument(Reader reader, String contentType, MessageContext messageContext) throws AxisFault
processDocument in interface TextMessageBuilderAxisFaultpublic org.apache.axiom.om.OMElement processDocument(String content, String contentType, MessageContext messageContext) throws AxisFault
processDocument in interface TextMessageBuilderAxisFaultCopyright © 2004–2018 The Apache Software Foundation. All rights reserved.