public class DefaultHttpListenerConfig extends AbstractAnnotatedObject implements HttpListenerConfig, org.mule.runtime.api.lifecycle.Initialisable, MuleContextAware
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONNECTION_IDLE_TIMEOUT |
static int |
DEFAULT_MAX_THREADS |
| Constructor and Description |
|---|
DefaultHttpListenerConfig() |
| Modifier and Type | Method and Description |
|---|---|
RequestHandlerManager |
addRequestHandler(ListenerRequestMatcher requestMatcher,
RequestHandler requestHandler) |
ListenerPath |
getFullListenerPath(String listenerPath) |
String |
getHost() |
String |
getName() |
int |
getPort() |
org.mule.runtime.api.tls.TlsContextFactory |
getTlsContext() |
boolean |
hasTlsConfig() |
void |
initialise() |
boolean |
isStarted() |
Boolean |
resolveParseRequest(Boolean listenerParseRequest) |
void |
setBasePath(String basePath) |
void |
setConnectionIdleTimeout(int connectionIdleTimeout) |
void |
setHost(String host) |
void |
setMuleContext(MuleContext muleContext) |
void |
setName(String name) |
void |
setParseRequest(Boolean parseRequest) |
void |
setPort(int port) |
void |
setProtocol(HttpConstants.Protocols protocol) |
void |
setServerSocketProperties(TcpServerSocketProperties serverSocketProperties) |
void |
setTlsContext(org.mule.runtime.api.tls.TlsContextFactory tlsContext) |
void |
setUsePersistentConnections(boolean usePersistentConnections) |
void |
setWorkerThreadingProfile(ThreadingProfile workerThreadingProfile) |
void |
start()
Starts the listening for incoming request.
|
void |
stop()
Stops listening for incoming request.
|
getAnnotation, getAnnotations, setAnnotationspublic static final int DEFAULT_MAX_THREADS
public static final int DEFAULT_CONNECTION_IDLE_TIMEOUT
public void setWorkerThreadingProfile(ThreadingProfile workerThreadingProfile)
public void setName(String name)
public void setProtocol(HttpConstants.Protocols protocol)
public void setHost(String host)
public void setPort(int port)
public void setBasePath(String basePath)
public void setTlsContext(org.mule.runtime.api.tls.TlsContextFactory tlsContext)
public void setServerSocketProperties(TcpServerSocketProperties serverSocketProperties)
public void setParseRequest(Boolean parseRequest)
public ListenerPath getFullListenerPath(String listenerPath)
public 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 RequestHandlerManager addRequestHandler(ListenerRequestMatcher requestMatcher, RequestHandler requestHandler) throws IOException
IOExceptionpublic int getPort()
getPort in interface HttpListenerConfigpublic String getHost()
getHost in interface HttpListenerConfigpublic org.mule.runtime.api.tls.TlsContextFactory getTlsContext()
getTlsContext in interface HttpListenerConfigpublic void start()
throws org.mule.runtime.api.exception.MuleException
HttpListenerConfigstart in interface org.mule.runtime.api.lifecycle.Startablestart in interface HttpListenerConfigorg.mule.runtime.api.exception.MuleExceptionpublic boolean hasTlsConfig()
hasTlsConfig in interface HttpListenerConfigpublic void stop()
throws org.mule.runtime.api.exception.MuleException
HttpListenerConfigstop in interface org.mule.runtime.api.lifecycle.Stoppablestop in interface HttpListenerConfigorg.mule.runtime.api.exception.MuleExceptionpublic String getName()
getName in interface org.mule.runtime.api.meta.NamedObjectpublic void setUsePersistentConnections(boolean usePersistentConnections)
public void setConnectionIdleTimeout(int connectionIdleTimeout)
public boolean isStarted()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.