@Deprecated public abstract class AbstractStaxStreamPayloadEndpoint extends AbstractStaxPayloadEndpoint implements MessageEndpoint
XMLStreamReader
, and to create a response using a XMLStreamWriter
.invokeInternal(javax.xml.stream.XMLStreamReader,javax.xml.stream.XMLStreamWriter)
,
XMLStreamReader
,
XMLStreamWriter
logger
Constructor and Description |
---|
AbstractStaxStreamPayloadEndpoint()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
invoke(MessageContext messageContext)
Deprecated.
Invokes an operation.
|
protected abstract void |
invokeInternal(XMLStreamReader streamReader,
XMLStreamWriter streamWriter)
Deprecated.
Template method.
|
createXmlInputFactory, createXmlOutputFactory, getInputFactory, getOutputFactory
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
public AbstractStaxStreamPayloadEndpoint()
public final void invoke(MessageContext messageContext) throws Exception
MessageEndpoint
The given messageContext
can be used to create a response.
invoke
in interface MessageEndpoint
messageContext
- the message contextException
- if an exception occursprotected abstract void invokeInternal(XMLStreamReader streamReader, XMLStreamWriter streamWriter) throws Exception
XMLStreamReader
,
and a XMLStreamWriter
to write the response payload to.streamReader
- the reader to read the payload fromstreamWriter
- the writer to write the payload toException
Copyright © 2020 Pivotal Software. All rights reserved.