@Deprecated public abstract class AbstractSaxPayloadEndpoint extends TransformerObjectSupport implements PayloadEndpoint
ContentHandler. Allows
subclasses to create a response by returning a Source.
Implementations of this class should create a new handler for each call of createContentHandler, because of
thread safety. The handlers is later passed on to createResponse, so it can be used for holding
request-specific state.
createContentHandler(),
getResponse(org.xml.sax.ContentHandler)logger| Constructor and Description |
|---|
AbstractSaxPayloadEndpoint()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract ContentHandler |
createContentHandler()
Deprecated.
Returns the SAX
ContentHandler used to parse the incoming request payload. |
protected abstract Source |
getResponse(ContentHandler contentHandler)
Deprecated.
Returns the response to be given, if any.
|
Source |
invoke(Source request)
Deprecated.
Invokes the provided
ContentHandler on the given request. |
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transformpublic final Source invoke(Source request) throws Exception
ContentHandler on the given request. After parsing has been done, the provided
response is returned.invoke in interface PayloadEndpointrequest - the payload of the request message, may be nullnull to indicate no responseException - if an exception occurscreateContentHandler(),
getResponse(org.xml.sax.ContentHandler)protected abstract ContentHandler createContentHandler() throws Exception
ContentHandler used to parse the incoming request payload. A new instance should be created
for each call, because of thread-safety. The content handler can be used to hold request-specific state.
If an incoming message does not contain a payload, this method will not be invoked.
Exceptionprotected abstract Source getResponse(ContentHandler contentHandler) throws Exception
ContentHandler. The passed ContentHandler is created by createContentHandler(): it can
be used to hold request-specific state.
If an incoming message does not contain a payload, this method will be invoked with null as content
handler.
contentHandler - the content handler used to parse the requestExceptionCopyright © 2023 VMware, Inc.. All rights reserved.