@Deprecated public abstract class AbstractStaxEventPayloadEndpoint extends AbstractStaxPayloadEndpoint implements MessageEndpoint
XMLEventReader
, and to create a response using a XMLEventWriter
.invokeInternal(javax.xml.stream.XMLEventReader,javax.xml.stream.util.XMLEventConsumer,
javax.xml.stream.XMLEventFactory)
,
XMLEventReader
,
XMLEventWriter
logger
Constructor and Description |
---|
AbstractStaxEventPayloadEndpoint()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected XMLEventFactory |
createXmlEventFactory()
Deprecated.
Create a
XMLEventFactory that this endpoint will use to create XMLEvent s. |
void |
invoke(MessageContext messageContext)
Deprecated.
Invokes an operation.
|
protected abstract void |
invokeInternal(XMLEventReader eventReader,
XMLEventConsumer eventWriter,
XMLEventFactory eventFactory)
Deprecated.
Template method.
|
createXmlInputFactory, createXmlOutputFactory, getInputFactory, getOutputFactory
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
public AbstractStaxEventPayloadEndpoint()
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 XMLEventFactory createXmlEventFactory()
XMLEventFactory
that this endpoint will use to create XMLEvent
s. Can be
overridden in subclasses, adding further initialization of the factory. The resulting
XMLEventFactory
is cached, so this method will only be called once.XMLEventFactory
protected abstract void invokeInternal(XMLEventReader eventReader, XMLEventConsumer eventWriter, XMLEventFactory eventFactory) throws Exception
XMLEventReader
, and
a XMLEventWriter
to write the response payload to.eventReader
- the reader to read the payload events fromeventWriter
- the writer to write payload events toeventFactory
- an XMLEventFactory
that can be used to create eventsException
Copyright © 2020 Pivotal Software. All rights reserved.