public class Router extends AbstractRouter
| Modifier and Type | Field and Description |
|---|---|
protected org.slf4j.Logger |
logger |
config, flowConstruct, ramlHandler| Constructor and Description |
|---|
Router() |
| Modifier and Type | Method and Description |
|---|---|
protected org.mule.api.MuleEvent |
doProcessRouterResponse(org.mule.api.MuleEvent event,
Integer successStatus) |
Configuration |
getConfig() |
protected org.mule.construct.Flow |
getFlow(org.mule.raml.interfaces.model.IResource resource,
HttpRestRequest request,
String version)
Returns the flow that handles the request or null if there is none.
|
protected org.mule.api.MuleEvent |
handleEvent(org.mule.api.MuleEvent event,
String path) |
protected boolean |
isFlowDeclaredWithDifferentMediaType(Map<String,org.mule.construct.Flow> map,
String baseKey) |
void |
setConfig(Configuration config) |
protected void |
startConfiguration() |
process, processBlocking, processBlockingRequest, processNext, processNonBlocking, processRouterRequest, setFlowConstruct, startaddMessageProcessorPathElements, getListener, getMuleContext, isEventValid, setListener, setMuleContext, toStringgetAnnotation, getAnnotations, setAnnotationspublic Configuration getConfig()
public void setConfig(Configuration config)
protected void startConfiguration()
throws org.mule.api.lifecycle.StartException
startConfiguration in class AbstractRouterorg.mule.api.lifecycle.StartExceptionprotected org.mule.api.MuleEvent handleEvent(org.mule.api.MuleEvent event,
String path)
throws org.mule.api.MuleException
handleEvent in class AbstractRouterorg.mule.api.MuleExceptionprotected org.mule.construct.Flow getFlow(org.mule.raml.interfaces.model.IResource resource,
HttpRestRequest request,
String version)
throws UnsupportedMediaTypeException
getFlow in class AbstractRouterUnsupportedMediaTypeExceptionprotected boolean isFlowDeclaredWithDifferentMediaType(Map<String,org.mule.construct.Flow> map, String baseKey)
protected org.mule.api.MuleEvent doProcessRouterResponse(org.mule.api.MuleEvent event,
Integer successStatus)
doProcessRouterResponse in class AbstractRouterCopyright © 2021. All rights reserved.