Package com.adaptris.core.http.jetty
Class JettyConnection
- java.lang.Object
-
- com.adaptris.core.AdaptrisConnectionImp
-
- com.adaptris.core.http.jetty.JettyConnection
-
- All Implemented Interfaces:
AdaptrisComponent,AdaptrisConnection,ComponentLifecycle,ComponentLifecycleExtension,JettyServletRegistrar,StateManagedComponent
- Direct Known Subclasses:
HttpConnection
public abstract class JettyConnection extends AdaptrisConnectionImp implements JettyServletRegistrar
This class is the base class that all Jetty based Connections extend.
-
-
Field Summary
Fields Modifier and Type Field Description protected org.eclipse.jetty.servlet.ServletContextHandlercontextprotected org.eclipse.jetty.server.Serverserver-
Fields inherited from class com.adaptris.core.AdaptrisConnectionImp
log
-
-
Constructor Summary
Constructors Constructor Description JettyConnection()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddServlet(ServletWrapper wrapper)Add a servlet to the jetty engine.protected static java.lang.String[]asArray(java.lang.String s)protected voidcloseConnection()Close the underlying connection.protected voidinitConnection()Initialise the underlying connection.voidremoveServlet(ServletWrapper wrapper)Remove a servlet from the jetty engine.protected voidstartConnection()Start the underlying connection.protected voidstopConnection()Stop the underlying connection.-
Methods inherited from class com.adaptris.core.AdaptrisConnectionImp
addExceptionListener, addMessageConsumer, addMessageProducer, changeState, cloneForTesting, close, connectionErrorHandler, getConnectionErrorHandler, getUniqueId, getWorkersFirstOnShutdown, init, prepare, prepareConnection, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, retrieveConnection, retrieveExceptionListeners, retrieveMessageConsumers, retrieveMessageProducers, setConnectionErrorHandler, setUniqueId, setWorkersFirstOnShutdown, start, stop, workersFirstOnShutdown
-
-
-
-
Method Detail
-
closeConnection
protected void closeConnection()
Description copied from class:AdaptrisConnectionImpClose the underlying connection.- Specified by:
closeConnectionin classAdaptrisConnectionImp- See Also:
AdaptrisConnectionImp.closeConnection()
-
initConnection
protected void initConnection() throws CoreExceptionDescription copied from class:AdaptrisConnectionImpInitialise the underlying connection.- Specified by:
initConnectionin classAdaptrisConnectionImp- Throws:
CoreException- wrapping any exception.- See Also:
AdaptrisConnectionImp.initConnection()
-
removeServlet
public void removeServlet(ServletWrapper wrapper)
Description copied from interface:JettyServletRegistrarRemove a servlet from the jetty engine.- Specified by:
removeServletin interfaceJettyServletRegistrar- Parameters:
wrapper- the servlet wrapper
-
addServlet
public void addServlet(ServletWrapper wrapper)
Description copied from interface:JettyServletRegistrarAdd a servlet to the jetty engine.- Specified by:
addServletin interfaceJettyServletRegistrar
-
startConnection
protected void startConnection() throws CoreExceptionDescription copied from class:AdaptrisConnectionImpStart the underlying connection.- Specified by:
startConnectionin classAdaptrisConnectionImp- Throws:
CoreException- wrapping any exception.- See Also:
AdaptrisConnectionImp.startConnection()
-
stopConnection
protected void stopConnection()
Description copied from class:AdaptrisConnectionImpStop the underlying connection.- Specified by:
stopConnectionin classAdaptrisConnectionImp- See Also:
AdaptrisConnectionImp.stopConnection()
-
asArray
protected static java.lang.String[] asArray(java.lang.String s)
-
-