Package org.springframework.ws.server
Interface EndpointAdapter
- All Known Implementing Classes:
AbstractMethodEndpointAdapter
,DefaultMethodEndpointAdapter
,GenericMarshallingMethodEndpointAdapter
,MarshallingMethodEndpointAdapter
,MessageEndpointAdapter
,MessageMethodEndpointAdapter
,PayloadEndpointAdapter
,PayloadMethodEndpointAdapter
,XPathParamAnnotationMethodEndpointAdapter
public interface EndpointAdapter
Interface that must be implemented for each endpoint type to handle a message request. This interface is used to
allow the
MessageDispatcher
to be indefinitely extensible. It accesses all installed endpoints through this
interface, meaning that is does not contain code specific to any endpoint type.
This interface is not intended for application developers. It is available for those who want to develop their own message flow.
- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
invoke
(MessageContext messageContext, Object endpoint) Use the givenendpoint
to handle the request.boolean
Does thisEndpointAdapter
support the givenendpoint
?
-
Method Details
-
supports
Does thisEndpointAdapter
support the givenendpoint
?Typical
EndpointAdapters
will base the decision on the endpoint type.- Parameters:
endpoint
- endpoint object to check- Returns:
true
if thisEndpointAdapter
supports the suppliedendpoint
-
invoke
Use the givenendpoint
to handle the request.- Parameters:
messageContext
- the current message contextendpoint
- the endpoint to use. This object must have previously been passed to thesupports(Object)
method of this interface, which must have returnedtrue
- Throws:
Exception
- in case of errors
-