public class NettyHttpServerEngine extends Object implements ServerEngine
Constructor and Description |
---|
NettyHttpServerEngine() |
NettyHttpServerEngine(String host,
int port) |
Modifier and Type | Method and Description |
---|---|
void |
addServant(URL url,
NettyHttpHandler handler) |
protected void |
checkRegistedContext(URL url) |
void |
finalizeConfig() |
String |
getHost() |
int |
getMaxChunkContentSize() |
int |
getPort() |
String |
getProtocol() |
int |
getReadIdleTime() |
NettyHttpHandler |
getServant(URL url)
Get a previously registered servant.
|
ThreadingParameters |
getThreadingParameters() |
TLSServerParameters |
getTlsServerParameters()
This method returns the programmatically set TLSServerParameters, not
the TLSServerParametersType, which is the JAXB generated type used
in SpringConfiguration.
|
int |
getWriteIdleTime() |
boolean |
isSessionSupport() |
void |
removeServant(URL url)
Remove a previously registered servant.
|
void |
setHost(String host) |
void |
setMaxChunkContentSize(int maxChunkContentSize) |
void |
setPort(int port) |
void |
setProtocol(String protocol) |
void |
setReadIdleTime(int readIdleTime) |
void |
setSessionSupport(boolean session) |
void |
setThreadingParameters(ThreadingParameters params) |
void |
setTlsServerParameters(TLSServerParameters params)
This method is used to programmatically set the TLSServerParameters.
|
void |
setWriteIdleTime(int writeIdleTime) |
void |
shutdown() |
protected io.netty.channel.Channel |
startServer() |
public NettyHttpServerEngine()
public NettyHttpServerEngine(String host, int port)
public String getProtocol()
public void setProtocol(String protocol)
@PostConstruct public void finalizeConfig()
public void setTlsServerParameters(TLSServerParameters params)
public TLSServerParameters getTlsServerParameters()
public void setThreadingParameters(ThreadingParameters params)
public ThreadingParameters getThreadingParameters()
protected io.netty.channel.Channel startServer()
protected void checkRegistedContext(URL url)
public void addServant(URL url, NettyHttpHandler handler)
addServant
in interface ServerEngine
public void removeServant(URL url)
ServerEngine
removeServant
in interface ServerEngine
url
- the URL the servant was registered against.public NettyHttpHandler getServant(URL url)
ServerEngine
getServant
in interface ServerEngine
url
- the associated URLpublic void shutdown()
public int getReadIdleTime()
public void setReadIdleTime(int readIdleTime)
public int getWriteIdleTime()
public void setWriteIdleTime(int writeIdleTime)
public boolean isSessionSupport()
public void setSessionSupport(boolean session)
public int getMaxChunkContentSize()
public void setMaxChunkContentSize(int maxChunkContentSize)
public int getPort()
public void setPort(int port)
public void setHost(String host)
public String getHost()
Apache CXF