public class DefaultHttpListenerConfig extends Object implements HttpListenerConfig, Initialisable, MuleContextAware
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONNECTION_IDLE_TIMEOUT |
static int |
DEFAULT_MAX_THREADS |
PHASE_NAMEPHASE_NAMEPHASE_NAME| Constructor and Description |
|---|
DefaultHttpListenerConfig() |
| Modifier and Type | Method and Description |
|---|---|
RequestHandlerManager |
addRequestHandler(ListenerRequestMatcher requestMatcher,
RequestHandler requestHandler) |
String |
getHost() |
String |
getName() |
int |
getPort() |
TlsContextFactory |
getTlsContext() |
boolean |
hasTlsConfig() |
void |
initialise() |
Boolean |
resolveParseRequest(Boolean listenerParseRequest) |
String |
resolvePath(String listenerPath) |
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(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.
|
public 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(TlsContextFactory tlsContext)
public void setServerSocketProperties(TcpServerSocketProperties serverSocketProperties)
public void setParseRequest(Boolean parseRequest)
public void initialise()
throws InitialisationException
initialise in interface InitialisableInitialisationExceptionpublic 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 TlsContextFactory getTlsContext()
getTlsContext in interface HttpListenerConfigpublic void start()
throws MuleException
HttpListenerConfigstart in interface Startablestart in interface HttpListenerConfigMuleExceptionpublic boolean hasTlsConfig()
hasTlsConfig in interface HttpListenerConfigpublic void stop()
throws MuleException
HttpListenerConfigstop in interface Stoppablestop in interface HttpListenerConfigMuleExceptionpublic String getName()
public void setUsePersistentConnections(boolean usePersistentConnections)
public void setConnectionIdleTimeout(int connectionIdleTimeout)
Copyright © 2003–2015 MuleSoft, Inc.. All rights reserved.