public class DefaultHttpListenerConfig extends AbstractAnnotatedObject implements HttpListenerConfig, Initialisable, MuleContextAware
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_CONNECTION_IDLE_TIMEOUT |
static int |
DEFAULT_MAX_THREADS |
PROPERTY_NAME
PHASE_NAME
PHASE_NAME
PHASE_NAME
Constructor and Description |
---|
DefaultHttpListenerConfig() |
Modifier and Type | Method and Description |
---|---|
RequestHandlerManager |
addRequestHandler(ListenerRequestMatcher requestMatcher,
RequestHandler requestHandler) |
ListenerPath |
getFullListenerPath(String listenerPath) |
String |
getHost() |
String |
getName()
Gets the name of the object
|
int |
getPort() |
TlsContextFactory |
getTlsContext() |
boolean |
hasTlsConfig() |
void |
initialise()
Method used to perform any initialisation work.
|
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(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, setAnnotations
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAnnotation, getAnnotations, setAnnotations
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 ListenerPath getFullListenerPath(String listenerPath)
public void initialise() throws InitialisationException
Initialisable
InitialisationException
should be thrown,
causing the Mule instance to shutdown. If the error is recoverable, say by
retrying to connect, a RecoverableException
should be thrown.
There is no guarantee that by throwing a Recoverable exception that the Mule
instance will not shut down.initialise
in interface Initialisable
InitialisationException
- if a fatal error occurs causing the Mule instance to shutdownRecoverableException
- if an error occurs that can be recovered frompublic void setMuleContext(MuleContext muleContext)
setMuleContext
in interface MuleContextAware
public RequestHandlerManager addRequestHandler(ListenerRequestMatcher requestMatcher, RequestHandler requestHandler) throws IOException
IOException
public int getPort()
getPort
in interface HttpListenerConfig
public String getHost()
getHost
in interface HttpListenerConfig
public TlsContextFactory getTlsContext()
getTlsContext
in interface HttpListenerConfig
public void start() throws MuleException
HttpListenerConfig
start
in interface Startable
start
in interface HttpListenerConfig
MuleException
public boolean hasTlsConfig()
hasTlsConfig
in interface HttpListenerConfig
public void stop() throws MuleException
HttpListenerConfig
stop
in interface Stoppable
stop
in interface HttpListenerConfig
MuleException
public String getName()
NamedObject
getName
in interface NamedObject
public void setUsePersistentConnections(boolean usePersistentConnections)
public void setConnectionIdleTimeout(int connectionIdleTimeout)
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.