Class AbstractXomPayloadEndpoint
java.lang.Object
org.springframework.xml.transform.TransformerObjectSupport
org.springframework.ws.server.endpoint.AbstractXomPayloadEndpoint
- All Implemented Interfaces:
PayloadEndpoint
@Deprecated
public abstract class AbstractXomPayloadEndpoint
extends TransformerObjectSupport
implements PayloadEndpoint
Deprecated.
as of Spring Web Services 2.0, in favor of annotated endpoints
Abstract base class for endpoints that handle the message payload as XOM elements. Offers the message payload as a
XOM
Element
, and allows subclasses to create a response by returning an Element
.
An AbstractXomPayloadEndpoint
only accept one payload element. Multiple payload elements are not in
accordance with WS-I.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
-
Element
-
Field Summary
Fields inherited from class org.springframework.xml.transform.TransformerObjectSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected nu.xom.Serializer
createSerializer
(OutputStream outputStream) Deprecated.Creates aSerializer
to be used for writing the response to.final Source
Deprecated.Invokes the endpoint with the given request payload, and possibly returns a response.protected abstract nu.xom.Element
invokeInternal
(nu.xom.Element requestElement) Deprecated.Template method.Methods inherited from class org.springframework.xml.transform.TransformerObjectSupport
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
-
Constructor Details
-
AbstractXomPayloadEndpoint
public AbstractXomPayloadEndpoint()Deprecated.
-
-
Method Details
-
invoke
Deprecated.Description copied from interface:PayloadEndpoint
Invokes the endpoint with the given request payload, and possibly returns a response.- Specified by:
invoke
in interfacePayloadEndpoint
- Parameters:
request
- the payload of the request message, may benull
- Returns:
- the payload of the response message, may be
null
to indicate no response - Throws:
Exception
- if an exception occurs
-
createSerializer
Deprecated.Creates aSerializer
to be used for writing the response to.Default implementation uses the UTF-8 encoding and does not set any options, but this may be changed in subclasses.
- Parameters:
outputStream
- the output stream to serialize to- Returns:
- the serializer
-
invokeInternal
Deprecated.Template method. Subclasses must implement this. Offers the request payload as a XOMElement
, and allows subclasses to return a responseElement
.- Parameters:
requestElement
- the contents of the SOAP message as XOM element- Returns:
- the response element. Can be
null
to specify no response. - Throws:
Exception
-