Package org.springframework.ws.server
Interface EndpointAdapter
- All Known Implementing Classes:
AbstractMethodEndpointAdapter,DefaultMethodEndpointAdapter,MessageEndpointAdapter,PayloadEndpointAdapter
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
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidinvoke(MessageContext messageContext, Object endpoint) Use the givenendpointto handle the request.booleanDoes thisEndpointAdaptersupport the givenendpoint?
-
Method Details
-
supports
Does thisEndpointAdaptersupport the givenendpoint?Typical
EndpointAdapterswill base the decision on the endpoint type.- Parameters:
endpoint- endpoint object to check- Returns:
trueif thisEndpointAdaptersupports the suppliedendpoint
-
invoke
Use the givenendpointto 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
-