org.apache.synapse.rest
Class RESTRequestHandler

java.lang.Object
  extended by org.apache.synapse.rest.RESTRequestHandler

public class RESTRequestHandler
extends Object

This class is responsible for receiving requests from various sources and dispatching them to a suitable REST API for further processing. This is the main entry point for mediating messages through APIs and Resources.


Constructor Summary
RESTRequestHandler()
           
 
Method Summary
 boolean process(MessageContext synCtx)
          Attempt to process the given message through one of the available APIs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RESTRequestHandler

public RESTRequestHandler()
Method Detail

process

public boolean process(MessageContext synCtx)
Attempt to process the given message through one of the available APIs. This method will first try to locate a suitable API for the given message by running it through the API validation routines available. If a matching API is found it will dispatch the message to the located API. If a matching API cannot be found, message will be left intact so any other handlers (eg: main sequence) can pick it up later.

Parameters:
synCtx - MessageContext of the request to be processed
Returns:
true if the message was dispatched to an API and false otherwise


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