Class PayloadEndpointAdapter
java.lang.Object
org.springframework.xml.transform.TransformerObjectSupport
org.springframework.ws.server.endpoint.adapter.PayloadEndpointAdapter
- All Implemented Interfaces:
EndpointAdapter
Adapter to use a
PayloadEndpoint
as the endpoint for a EndpointInvocationChain
.
This adapter is registered by default by the MessageDispatcher
and SoapMessageDispatcher
.
- 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 TypeMethodDescriptionvoid
invoke
(MessageContext messageContext, Object endpoint) Use the givenendpoint
to handle the request.boolean
Does thisEndpointAdapter
support the givenendpoint
?Methods inherited from class org.springframework.xml.transform.TransformerObjectSupport
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
-
Constructor Details
-
PayloadEndpointAdapter
public PayloadEndpointAdapter()
-
-
Method Details
-
supports
Description copied from interface:EndpointAdapter
Does thisEndpointAdapter
support the givenendpoint
?Typical
EndpointAdapters
will base the decision on the endpoint type.- Specified by:
supports
in interfaceEndpointAdapter
- Parameters:
endpoint
- endpoint object to check- Returns:
true
if thisEndpointAdapter
supports the suppliedendpoint
-
invoke
Description copied from interface:EndpointAdapter
Use the givenendpoint
to handle the request.- Specified by:
invoke
in interfaceEndpointAdapter
- Parameters:
messageContext
- the current message contextendpoint
- the endpoint to use. This object must have previously been passed to theEndpointAdapter.supports(Object)
method of this interface, which must have returnedtrue
- Throws:
Exception
- in case of errors
-