public abstract class JettyConnection extends AdaptrisConnectionImp implements JettyServletRegistrar
Modifier and Type | Field and Description |
---|---|
protected org.eclipse.jetty.servlet.ServletContextHandler |
context |
protected org.eclipse.jetty.server.Server |
server |
log
Constructor and Description |
---|
JettyConnection() |
Modifier and Type | Method and Description |
---|---|
void |
addServlet(ServletWrapper wrapper)
Add a servlet to the jetty engine.
|
protected static java.lang.String[] |
asArray(java.lang.String s) |
protected void |
closeConnection()
Close the underlying connection.
|
protected void |
initConnection()
Initialise the underlying connection.
|
void |
removeServlet(ServletWrapper wrapper)
Remove a servlet from the jetty engine.
|
protected void |
startConnection()
Start the underlying connection.
|
protected void |
stopConnection()
Stop the underlying connection.
|
addExceptionListener, addMessageConsumer, addMessageProducer, changeState, cloneForTesting, close, connectionErrorHandler, getConnectionErrorHandler, getLookupName, getUniqueId, getWorkersFirstOnShutdown, init, prepare, prepareConnection, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setLookupName, setUniqueId, setWorkersFirstOnShutdown, start, stop, workersFirstOnShutdown
protected transient org.eclipse.jetty.server.Server server
protected transient org.eclipse.jetty.servlet.ServletContextHandler context
protected void closeConnection()
AdaptrisConnectionImp
closeConnection
in class AdaptrisConnectionImp
AdaptrisConnectionImp.closeConnection()
protected void initConnection() throws CoreException
AdaptrisConnectionImp
initConnection
in class AdaptrisConnectionImp
CoreException
- wrapping any exception.AdaptrisConnectionImp.initConnection()
public void removeServlet(ServletWrapper wrapper)
JettyServletRegistrar
removeServlet
in interface JettyServletRegistrar
wrapper
- the servlet wrapperpublic void addServlet(ServletWrapper wrapper)
JettyServletRegistrar
addServlet
in interface JettyServletRegistrar
protected void startConnection() throws CoreException
AdaptrisConnectionImp
startConnection
in class AdaptrisConnectionImp
CoreException
- wrapping any exception.AdaptrisConnectionImp.startConnection()
protected void stopConnection()
AdaptrisConnectionImp
stopConnection
in class AdaptrisConnectionImp
AdaptrisConnectionImp.stopConnection()
protected static java.lang.String[] asArray(java.lang.String s)