Interface RESTDispatcher

  • All Known Implementing Classes:
    DefaultDispatcher, URITemplateBasedDispatcher, URLMappingBasedDispatcher

    public interface RESTDispatcher
    Interface for finding a Resource through which a given request can be mediated. Implementations of this interface should attempt to find a Resource out of the provided collection using which the given message can br further processed.
    • Method Detail

      • findResource

        Resource findResource​(MessageContext synCtx,
                              Collection<Resource> resources)
        Find a Resource instance suitable for processing the given message
        Parameters:
        synCtx - MessageContext to be processed through a Resource
        resources - Collection of available Resource instances
        Returns:
        A matching Resource instance or null