Abstract base class for endpoints that handle the message payload with event-based StAX. Allows subclasses to read
the request with a XMLEventReader, and to create a response using a XMLEventWriter.
Create a 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.
Template method. Subclasses must implement this. Offers the request payload as a XMLEventReader, and
a XMLEventWriter to write the response payload to.
Parameters:
eventReader - the reader to read the payload events from
eventWriter - the writer to write payload events to
eventFactory - an XMLEventFactory that can be used to create events