public class DefaultHttpListener extends Object implements HttpListener, org.mule.runtime.api.lifecycle.Initialisable, MuleContextAware, FlowConstructAware
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVER_PROBLEM |
| Constructor and Description |
|---|
DefaultHttpListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Get rid of this listener.
|
String[] |
getAllowedMethods() |
HttpListenerConfig |
getConfig() |
String |
getPath() |
void |
initialise() |
void |
setAllowedMethods(String allowedMethods) |
void |
setConfig(DefaultHttpListenerConfig config) |
void |
setErrorResponseBuilder(HttpResponseBuilder errorResponseBuilder) |
void |
setFlowConstruct(FlowConstruct flowConstruct) |
void |
setListener(Processor messageProcessor) |
void |
setMuleContext(MuleContext muleContext) |
void |
setParseRequest(boolean parseRequest) |
void |
setPath(String path) |
void |
setResponseBuilder(HttpResponseBuilder responseBuilder) |
void |
setResponseStreamingMode(HttpStreamingType responseStreamingMode) |
void |
start()
Starts an stopped listener.
|
void |
stop()
Stops this listener.
|
public static final String SERVER_PROBLEM
public void setListener(Processor messageProcessor)
setListener in interface MessageSourcepublic void setPath(String path)
public void setAllowedMethods(String allowedMethods)
public void setConfig(DefaultHttpListenerConfig config)
public void setResponseBuilder(HttpResponseBuilder responseBuilder)
public void setErrorResponseBuilder(HttpResponseBuilder errorResponseBuilder)
public void setResponseStreamingMode(HttpStreamingType responseStreamingMode)
public void setParseRequest(boolean parseRequest)
public HttpListenerConfig getConfig()
getConfig in interface HttpListenerpublic void start()
throws org.mule.runtime.api.exception.MuleException
HttpListenerstart in interface org.mule.runtime.api.lifecycle.Startablestart in interface HttpListenerorg.mule.runtime.api.exception.MuleExceptionpublic void initialise()
throws org.mule.runtime.api.lifecycle.InitialisationException
initialise in interface org.mule.runtime.api.lifecycle.Initialisableorg.mule.runtime.api.lifecycle.InitialisationExceptionpublic void setMuleContext(MuleContext muleContext)
setMuleContext in interface MuleContextAwarepublic void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwarepublic void stop()
throws org.mule.runtime.api.exception.MuleException
HttpListenerorg.mule.runtime.module.http.internal.listener.ServiceTemporarilyUnavailableListenerRequestHandler#SERVICE_TEMPORARILY_UNAVAILABLE_STATUS_CODE.stop in interface org.mule.runtime.api.lifecycle.Stoppablestop in interface HttpListenerorg.mule.runtime.api.exception.MuleException - if there's was a problem stopping the listenerpublic void dispose()
HttpListenerorg.mule.runtime.module.http.internal.listener.NoListenerRequestHandler#RESOURCE_NOT_FOUND_STATUS_CODE unless there's
another listener which path matches the request criteria.dispose in interface org.mule.runtime.api.lifecycle.Disposabledispose in interface HttpListenerpublic String getPath()
getPath in interface HttpListenerpublic String[] getAllowedMethods()
getAllowedMethods in interface HttpListenerCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.