@Deprecated public abstract class AbstractXomPayloadEndpoint extends TransformerObjectSupport implements PayloadEndpoint
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.
Element
logger
Constructor and Description |
---|
AbstractXomPayloadEndpoint()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected nu.xom.Serializer |
createSerializer(OutputStream outputStream)
Deprecated.
Creates a
Serializer to be used for writing the response to. |
Source |
invoke(Source request)
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.
|
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
public final Source invoke(Source request) throws Exception
PayloadEndpoint
invoke
in interface PayloadEndpoint
request
- the payload of the request message, may be null
null
to indicate no responseException
- if an exception occursprotected nu.xom.Serializer createSerializer(OutputStream outputStream)
Serializer
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.
outputStream
- the output stream to serialize toprotected abstract nu.xom.Element invokeInternal(nu.xom.Element requestElement) throws Exception
Element
, and
allows subclasses to return a response Element
.requestElement
- the contents of the SOAP message as XOM elementnull
to specify no response.Exception
Copyright © 2018 Pivotal Software. All rights reserved.