Class AbstractStaxEventPayloadEndpoint
java.lang.Object
org.springframework.xml.transform.TransformerObjectSupport
org.springframework.ws.server.endpoint.AbstractStaxPayloadEndpoint
org.springframework.ws.server.endpoint.AbstractStaxEventPayloadEndpoint
- All Implemented Interfaces:
MessageEndpoint
@Deprecated
public abstract class AbstractStaxEventPayloadEndpoint
extends AbstractStaxPayloadEndpoint
implements MessageEndpoint
Deprecated.
as of Spring Web Services 2.0, in favor of annotated endpoints
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
.- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
-
Field Summary
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected XMLEventFactory
Deprecated.Create aXMLEventFactory
that this endpoint will use to createXMLEvent
s.final void
invoke
(MessageContext messageContext) Deprecated.Invokes an operation.protected abstract void
invokeInternal
(XMLEventReader eventReader, XMLEventConsumer eventWriter, XMLEventFactory eventFactory) Deprecated.Template method.Methods inherited from class org.springframework.ws.server.endpoint.AbstractStaxPayloadEndpoint
createXmlInputFactory, createXmlOutputFactory, getInputFactory, getOutputFactory
Methods inherited from class org.springframework.xml.transform.TransformerObjectSupport
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
-
Constructor Details
-
AbstractStaxEventPayloadEndpoint
public AbstractStaxEventPayloadEndpoint()Deprecated.
-
-
Method Details
-
invoke
Deprecated.Description copied from interface:MessageEndpoint
Invokes an operation.The given
messageContext
can be used to create a response.- Specified by:
invoke
in interfaceMessageEndpoint
- Parameters:
messageContext
- the message context- Throws:
Exception
- if an exception occurs
-
createXmlEventFactory
Deprecated.Create aXMLEventFactory
that this endpoint will use to createXMLEvent
s. Can be overridden in subclasses, adding further initialization of the factory. The resultingXMLEventFactory
is cached, so this method will only be called once.- Returns:
- the created
XMLEventFactory
-
invokeInternal
protected abstract void invokeInternal(XMLEventReader eventReader, XMLEventConsumer eventWriter, XMLEventFactory eventFactory) throws Exception Deprecated.Template method. Subclasses must implement this. Offers the request payload as aXMLEventReader
, and aXMLEventWriter
to write the response payload to.- Parameters:
eventReader
- the reader to read the payload events fromeventWriter
- the writer to write payload events toeventFactory
- anXMLEventFactory
that can be used to create events- Throws:
Exception
-