private static final Log log = LogFactory.getLog(Http11NioProtocol.class);
+ @Override
protected Log getLog() { return log; }
public Http11NioProtocol() {
private static final org.apache.juli.logging.Log log
= org.apache.juli.logging.LogFactory.getLog(Http11Protocol.class);
+ @Override
public Log getLog() { return log; }
/**
* Initialize the endpoint.
*/
+ @Override
public void init()
throws Exception {
/**
* Start the APR endpoint, creating acceptor, poller and sendfile threads.
*/
+ @Override
public void start()
throws Exception {
// Initialize socket if not done before
/**
* Pause the endpoint, which will make it stop accepting new sockets.
*/
+ @Override
public void pause() {
if (running && !paused) {
paused = true;
* Resume the endpoint, which will make it start accepting new sockets
* again.
*/
+ @Override
public void resume() {
if (running) {
paused = false;
/**
* Deallocate APR memory pools, and close server socket.
*/
+ @Override
public void destroy() throws Exception {
if (running) {
stop();
/**
* Initialize the endpoint.
*/
+ @Override
public void init()
throws Exception {
/**
* Start the NIO endpoint, creating acceptor, poller threads.
*/
+ @Override
public void start()
throws Exception {
// Initialize socket if not done before
/**
* Pause the endpoint, which will make it stop accepting new sockets.
*/
+ @Override
public void pause() {
if (running && !paused) {
paused = true;
* Resume the endpoint, which will make it start accepting new sockets
* again.
*/
+ @Override
public void resume() {
if (running) {
paused = false;
/**
* Deallocate NIO memory pools, and close server socket.
*/
+ @Override
public void destroy() throws Exception {
if (log.isDebugEnabled()) {
log.debug("Destroy initiated for "+new InetSocketAddress(getAddress(),getPort()));
return ssls;
}
+ @Override
public SSLSupport getSSLSupport(SSLSession session) {
SSLSupport ssls = factory.getSSLSupport(session);
return ssls;