public interface ProtocolHandler
Adapter
Modifier and Type | Method and Description |
---|---|
void |
addSslHostConfig(SSLHostConfig sslHostConfig) |
void |
addUpgradeProtocol(UpgradeProtocol upgradeProtocol) |
void |
destroy()
Destroy the protocol (optional).
|
SSLHostConfig[] |
findSslHostConfigs() |
UpgradeProtocol[] |
findUpgradeProtocols() |
Adapter |
getAdapter() |
Executor |
getExecutor()
The executor, provide access to the underlying thread pool.
|
void |
init()
Initialise the protocol.
|
boolean |
isAprRequired()
Requires APR/native library
|
boolean |
isSendfileSupported()
Does this ProtocolHandler support sendfile?
|
void |
pause()
Pause the protocol (optional).
|
void |
resume()
Resume the protocol (optional).
|
void |
setAdapter(Adapter adapter)
The adapter, used to call the connector.
|
void |
start()
Start the protocol.
|
void |
stop()
Stop the protocol.
|
void setAdapter(Adapter adapter)
adapter
- The adapter to associateAdapter getAdapter()
Executor getExecutor()
void init() throws Exception
Exception
- If the protocol handler fails to initialisevoid start() throws Exception
Exception
- If the protocol handler fails to startvoid pause() throws Exception
Exception
- If the protocol handler fails to pausevoid resume() throws Exception
Exception
- If the protocol handler fails to resumevoid stop() throws Exception
Exception
- If the protocol handler fails to stopvoid destroy() throws Exception
Exception
- If the protocol handler fails to destroyboolean isAprRequired()
true
if this Protocol Handler requires the
APR/native library, otherwise false
boolean isSendfileSupported()
true
if this Protocol Handler supports sendfile,
otherwise false
void addSslHostConfig(SSLHostConfig sslHostConfig)
SSLHostConfig[] findSslHostConfigs()
void addUpgradeProtocol(UpgradeProtocol upgradeProtocol)
UpgradeProtocol[] findUpgradeProtocols()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.