Class MessageEndpointAdapter
java.lang.Object
org.springframework.ws.server.endpoint.adapter.MessageEndpointAdapter
- All Implemented Interfaces:
EndpointAdapter
Adapter to use a
MessageEndpoint
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:
-
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
?
-
Constructor Details
-
MessageEndpointAdapter
public MessageEndpointAdapter()
-
-
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
-