org.apache.synapse.rest.dispatch
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 Summary
 Resource findResource(MessageContext synCtx, Collection<Resource> resources)
          Find a Resource instance suitable for processing the given message
 

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


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.