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
FieldsModifier and TypeFieldDescriptionprotected org.eclipse.jetty.servlet.ServletContextHandlerprotected org.eclipse.jetty.server.ServerFields inherited from class com.adaptris.core.AdaptrisConnectionImp
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddServlet(ServletWrapper wrapper) Add a servlet to the jetty engine.protected static String[]protected voidClose the underlying connection.protected voidInitialise the underlying connection.voidremoveServlet(ServletWrapper wrapper) Remove a servlet from the jetty engine.protected voidStart the underlying connection.protected voidStop 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
-
Field Details
-
server
protected transient org.eclipse.jetty.server.Server server -
context
protected transient org.eclipse.jetty.servlet.ServletContextHandler context
-
-
Constructor Details
-
JettyConnection
public JettyConnection()
-
-
Method Details
-
closeConnection
protected void closeConnection()Description copied from class:AdaptrisConnectionImpClose the underlying connection.- Specified by:
closeConnectionin classAdaptrisConnectionImp- See Also:
-
initConnection
Description copied from class:AdaptrisConnectionImpInitialise the underlying connection.- Specified by:
initConnectionin classAdaptrisConnectionImp- Throws:
CoreException- wrapping any exception.- See Also:
-
removeServlet
Description copied from interface:JettyServletRegistrarRemove a servlet from the jetty engine.- Specified by:
removeServletin interfaceJettyServletRegistrar- Parameters:
wrapper- the servlet wrapper
-
addServlet
Description copied from interface:JettyServletRegistrarAdd a servlet to the jetty engine.- Specified by:
addServletin interfaceJettyServletRegistrar
-
startConnection
Description copied from class:AdaptrisConnectionImpStart the underlying connection.- Specified by:
startConnectionin classAdaptrisConnectionImp- Throws:
CoreException- wrapping any exception.- See Also:
-
stopConnection
protected void stopConnection()Description copied from class:AdaptrisConnectionImpStop the underlying connection.- Specified by:
stopConnectionin classAdaptrisConnectionImp- See Also:
-
asArray
-