Package net.officefloor.servlet.tomcat
Class OfficeFloorEndPoint
- java.lang.Object
-
- org.apache.tomcat.util.net.AbstractEndpoint<java.lang.Void,OfficeFloorEndPoint>
-
- net.officefloor.servlet.tomcat.OfficeFloorEndPoint
-
public class OfficeFloorEndPoint extends org.apache.tomcat.util.net.AbstractEndpoint<java.lang.Void,OfficeFloorEndPoint>
OfficeFloor
AbstractEndpoint
.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description OfficeFloorEndPoint()
Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bind()
protected org.apache.tomcat.util.net.SocketProcessorBase<java.lang.Void>
createSocketProcessor(org.apache.tomcat.util.net.SocketWrapperBase<java.lang.Void> socketWrapper, org.apache.tomcat.util.net.SocketEvent event)
protected void
createSSLContext(org.apache.tomcat.util.net.SSLHostConfig sslHostConfig)
protected void
destroySocket(OfficeFloorEndPoint socket)
protected void
doCloseServerSocket()
protected boolean
getDeferAccept()
protected java.net.InetSocketAddress
getLocalAddress()
protected org.apache.juli.logging.Log
getLog()
OfficeFloorSocketWrapper
getOfficeFloorSocketWrapper()
Obtains theOfficeFloorSocketWrapper
.boolean
isAlpnSupported()
protected OfficeFloorEndPoint
serverSocketAccept()
protected boolean
setSocketOptions(OfficeFloorEndPoint socket)
void
startInternal()
void
stopInternal()
void
unbind()
-
Methods inherited from class org.apache.tomcat.util.net.AbstractEndpoint
addNegotiatedProtocol, addSslHostConfig, addSslHostConfig, awaitConnectionsClose, closeServerSocketGraceful, closeSocket, countDownConnection, countUpOrAwaitConnection, createExecutor, destroy, destroySsl, findSslHostConfigs, getAcceptCount, getAcceptorThreadCount, getAcceptorThreadPriority, getAddress, getAttribute, getBindOnInit, getBindState, getConnectionCount, getConnectionLinger, getConnections, getConnectionTimeout, getCurrentThreadCount, getCurrentThreadsBusy, getDaemon, getDefaultSSLHostConfigName, getDomain, getExecutor, getExecutorTerminationTimeoutMillis, getHandler, getId, getKeepAliveTimeout, getLocalPort, getMaxConnections, getMaxKeepAliveRequests, getMaxThreads, getMinSpareThreads, getName, getPort, getPortOffset, getPortWithOffset, getProperty, getSocketProperties, getSSLHostConfig, getTcpNoDelay, getThreadPriority, getUseAsyncIO, getUseSendfile, getUtilityExecutor, hasNegotiableProtocols, init, initializeConnectionLatch, isPaused, isRunning, isSSLEnabled, pause, processSocket, releaseSSLContext, reloadSslHostConfig, reloadSslHostConfigs, removeSslHostConfig, resume, setAcceptCount, setAcceptorThreadCount, setAcceptorThreadPriority, setAddress, setAttribute, setBindOnInit, setConnectionLinger, setConnectionTimeout, setDaemon, setDefaultSSLHostConfigName, setDomain, setExecutor, setExecutorTerminationTimeoutMillis, setHandler, setKeepAliveTimeout, setMaxConnections, setMaxKeepAliveRequests, setMaxThreads, setMinSpareThreads, setName, setPort, setPortOffset, setProperty, setSSLEnabled, setTcpNoDelay, setThreadPriority, setUseAsyncIO, setUseSendfile, setUtilityExecutor, shutdownExecutor, start, startAcceptorThread, stop, toTimeout, unlockAccept
-
-
-
-
Method Detail
-
getOfficeFloorSocketWrapper
public OfficeFloorSocketWrapper getOfficeFloorSocketWrapper()
Obtains theOfficeFloorSocketWrapper
.- Returns:
OfficeFloorSocketWrapper
.
-
getLog
protected org.apache.juli.logging.Log getLog()
- Specified by:
getLog
in classorg.apache.tomcat.util.net.AbstractEndpoint<java.lang.Void,OfficeFloorEndPoint>
-
bind
public void bind() throws java.lang.Exception
- Specified by:
bind
in classorg.apache.tomcat.util.net.AbstractEndpoint<java.lang.Void,OfficeFloorEndPoint>
- Throws:
java.lang.Exception
-
startInternal
public void startInternal() throws java.lang.Exception
- Specified by:
startInternal
in classorg.apache.tomcat.util.net.AbstractEndpoint<java.lang.Void,OfficeFloorEndPoint>
- Throws:
java.lang.Exception
-
stopInternal
public void stopInternal() throws java.lang.Exception
- Specified by:
stopInternal
in classorg.apache.tomcat.util.net.AbstractEndpoint<java.lang.Void,OfficeFloorEndPoint>
- Throws:
java.lang.Exception
-
unbind
public void unbind() throws java.lang.Exception
- Specified by:
unbind
in classorg.apache.tomcat.util.net.AbstractEndpoint<java.lang.Void,OfficeFloorEndPoint>
- Throws:
java.lang.Exception
-
isAlpnSupported
public boolean isAlpnSupported()
- Specified by:
isAlpnSupported
in classorg.apache.tomcat.util.net.AbstractEndpoint<java.lang.Void,OfficeFloorEndPoint>
-
createSSLContext
protected void createSSLContext(org.apache.tomcat.util.net.SSLHostConfig sslHostConfig) throws java.lang.Exception
- Specified by:
createSSLContext
in classorg.apache.tomcat.util.net.AbstractEndpoint<java.lang.Void,OfficeFloorEndPoint>
- Throws:
java.lang.Exception
-
getLocalAddress
protected java.net.InetSocketAddress getLocalAddress() throws java.io.IOException
- Specified by:
getLocalAddress
in classorg.apache.tomcat.util.net.AbstractEndpoint<java.lang.Void,OfficeFloorEndPoint>
- Throws:
java.io.IOException
-
getDeferAccept
protected boolean getDeferAccept()
- Specified by:
getDeferAccept
in classorg.apache.tomcat.util.net.AbstractEndpoint<java.lang.Void,OfficeFloorEndPoint>
-
createSocketProcessor
protected org.apache.tomcat.util.net.SocketProcessorBase<java.lang.Void> createSocketProcessor(org.apache.tomcat.util.net.SocketWrapperBase<java.lang.Void> socketWrapper, org.apache.tomcat.util.net.SocketEvent event)
- Specified by:
createSocketProcessor
in classorg.apache.tomcat.util.net.AbstractEndpoint<java.lang.Void,OfficeFloorEndPoint>
-
doCloseServerSocket
protected void doCloseServerSocket() throws java.io.IOException
- Specified by:
doCloseServerSocket
in classorg.apache.tomcat.util.net.AbstractEndpoint<java.lang.Void,OfficeFloorEndPoint>
- Throws:
java.io.IOException
-
serverSocketAccept
protected OfficeFloorEndPoint serverSocketAccept() throws java.lang.Exception
- Specified by:
serverSocketAccept
in classorg.apache.tomcat.util.net.AbstractEndpoint<java.lang.Void,OfficeFloorEndPoint>
- Throws:
java.lang.Exception
-
setSocketOptions
protected boolean setSocketOptions(OfficeFloorEndPoint socket)
- Specified by:
setSocketOptions
in classorg.apache.tomcat.util.net.AbstractEndpoint<java.lang.Void,OfficeFloorEndPoint>
-
destroySocket
protected void destroySocket(OfficeFloorEndPoint socket)
- Specified by:
destroySocket
in classorg.apache.tomcat.util.net.AbstractEndpoint<java.lang.Void,OfficeFloorEndPoint>
-
-