Package org.apache.synapse.api.inbound
Class InboundApiHandler
- java.lang.Object
-
- org.apache.synapse.api.AbstractApiHandler
-
- org.apache.synapse.api.inbound.InboundApiHandler
-
public class InboundApiHandler extends AbstractApiHandler
This class is responsible for receiving requests from inbound endpoints and dispatching them to a suitable inbound API for further processing.
-
-
Constructor Summary
Constructors Constructor Description InboundApiHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleandispatchToAPI(MessageContext synCtx)booleanprocess(MessageContext synCtx)Attempt to process the given message through one of the available inbound APIs.-
Methods inherited from class org.apache.synapse.api.AbstractApiHandler
apiProcess, apiProcessNonDefaultStrategy, dispatchToAPI, identifyAPI
-
-
-
-
Method Detail
-
process
public boolean process(MessageContext synCtx)
Attempt to process the given message through one of the available inbound 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.- Specified by:
processin classAbstractApiHandler- Parameters:
synCtx- MessageContext of the request to be processed- Returns:
- true if the message was dispatched to an API and false otherwise
-
dispatchToAPI
protected boolean dispatchToAPI(MessageContext synCtx)
- Specified by:
dispatchToAPIin classAbstractApiHandler
-
-