Spring Web Services Framework

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:
MessageDispatcher

Method Summary
 void invoke(MessageContext messageContext, Object endpoint)
          Use the given endpoint to handle the request.
 boolean supports(Object endpoint)
          Does this EndpointAdapter support the given endpoint?
 

Method Detail

supports

boolean supports(Object endpoint)
Does this EndpointAdapter support the given endpoint?

Typical EndpointAdapters will base the decision on the endpoint type.

Parameters:
endpoint - endpoint object to check
Returns:
true if this EndpointAdapter supports the supplied endpoint

invoke

void invoke(MessageContext messageContext,
            Object endpoint)
            throws Exception
Use the given endpoint to handle the request.

Parameters:
messageContext - the current message context
endpoint - the endpoint to use. This object must have previously been passed to the supports(Object) method of this interface, which must have returned true
Throws:
Exception - in case of errors

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.