public class DefaultHttpListener extends Object implements HttpListener, Initialisable, MuleContextAware, FlowConstructAware
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVER_PROBLEM |
PHASE_NAMEPHASE_NAMEPHASE_NAMEPHASE_NAME| 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(MessageProcessor 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(MessageProcessor 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 MuleException
HttpListenerstart in interface Startablestart in interface HttpListenerMuleExceptionpublic void initialise()
throws InitialisationException
initialise in interface InitialisableInitialisationExceptionpublic void setMuleContext(MuleContext muleContext)
setMuleContext in interface MuleContextAwarepublic void setFlowConstruct(FlowConstruct flowConstruct)
setFlowConstruct in interface FlowConstructAwarepublic void stop()
throws MuleException
HttpListenerorg.mule.module.http.internal.listener.ServiceTemporarilyUnavailableListenerRequestHandler#SERVICE_TEMPORARILY_UNAVAILABLE_STATUS_CODE.stop in interface Stoppablestop in interface HttpListenerMuleException - if there's was a problem stopping the listenerpublic void dispose()
HttpListenerorg.mule.module.http.internal.listener.NoListenerRequestHandler#RESOURCE_NOT_FOUND_STATUS_CODE unless
there's another listener which path matches the request criteria.dispose in interface Disposabledispose in interface HttpListenerpublic String getPath()
getPath in interface HttpListenerpublic String[] getAllowedMethods()
getAllowedMethods in interface HttpListenerCopyright © 2003–2016 MuleSoft, Inc.. All rights reserved.