@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,
XMLEventWriterlogger| 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 XMLEvents. |
void |
invoke(MessageContext messageContext)
Deprecated.
Invokes an operation.
|
protected abstract void |
invokeInternal(XMLEventReader eventReader,
XMLEventConsumer eventWriter,
XMLEventFactory eventFactory)
Deprecated.
Template method.
|
createXmlInputFactory, createXmlOutputFactory, getInputFactory, getOutputFactorycreateTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transformpublic AbstractStaxEventPayloadEndpoint()
public final void invoke(MessageContext messageContext) throws Exception
MessageEndpointThe given messageContext can be used to create a response.
invoke in interface MessageEndpointmessageContext - the message contextException - if an exception occursprotected XMLEventFactory createXmlEventFactory()
XMLEventFactory that this endpoint will use to create XMLEvents. Can be
overridden in subclasses, adding further initialization of the factory. The resulting
XMLEventFactory is cached, so this method will only be called once.XMLEventFactoryprotected 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