Package com.aspectran.jetty
Class JettyServer
- java.lang.Object
-
- org.eclipse.jetty.util.component.AbstractLifeCycle
-
- org.eclipse.jetty.util.component.ContainerLifeCycle
-
- org.eclipse.jetty.server.handler.AbstractHandler
-
- org.eclipse.jetty.server.handler.AbstractHandlerContainer
-
- org.eclipse.jetty.server.handler.HandlerWrapper
-
- org.eclipse.jetty.server.Server
-
- com.aspectran.jetty.JettyServer
-
- All Implemented Interfaces:
DisposableBean,InitializableBean,org.eclipse.jetty.server.Handler,org.eclipse.jetty.server.HandlerContainer,org.eclipse.jetty.util.Attributes,org.eclipse.jetty.util.component.Container,org.eclipse.jetty.util.component.Destroyable,org.eclipse.jetty.util.component.Dumpable,org.eclipse.jetty.util.component.Dumpable.DumpableContainer,org.eclipse.jetty.util.component.LifeCycle
public class JettyServer extends org.eclipse.jetty.server.Server implements InitializableBean, DisposableBean
The Jetty Server managed by Aspectran.Created: 2016. 12. 22.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.server.handler.AbstractHandler
org.eclipse.jetty.server.handler.AbstractHandler.ErrorDispatchHandler
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
org.eclipse.jetty.util.component.AbstractLifeCycle.AbstractLifeCycleListener
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.Attributes
org.eclipse.jetty.util.Attributes.Wrapper
-
Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.Container
org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener
-
-
Constructor Summary
Constructors Constructor Description JettyServer()JettyServer(int port)JettyServer(org.eclipse.jetty.util.thread.ThreadPool pool)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddestroy()A Dispose implementation that calls the destroy() method.voiddoStart()voiddoStop()voidinitialize()Invoke on initialization after it has set all bean properties supplied.booleanisAutoStart()voidsetAutoStart(boolean autoStart)voidsetSystemProperty(java.lang.String key, java.lang.String value)-
Methods inherited from class org.eclipse.jetty.server.Server
addBeanToAllConnectors, addConnector, clearAttributes, dump, getAttribute, getAttributeNames, getAttributeNameSet, getConnectors, getDateField, getErrorHandler, getRequestLog, getSessionIdManager, getStopAtShutdown, getThreadPool, getURI, getVersion, handle, handleAsync, handleOptions, isDumpAfterStart, isDumpBeforeStop, join, main, removeAttribute, removeConnector, setAttribute, setConnectors, setDumpAfterStart, setDumpBeforeStop, setErrorHandler, setRequestLog, setSessionIdManager, setStopAtShutdown, setStopTimeout, start, toString
-
Methods inherited from class org.eclipse.jetty.server.handler.HandlerWrapper
expandChildren, getHandler, getHandlers, handle, insertHandler, setHandler
-
Methods inherited from class org.eclipse.jetty.server.handler.AbstractHandlerContainer
doShutdown, expandHandler, findContainerOf, getChildHandlerByClass, getChildHandlers, getChildHandlersByClass, setServer
-
Methods inherited from class org.eclipse.jetty.util.component.ContainerLifeCycle
addBean, addBean, addEventListener, addManaged, contains, dump, dump, dump, dump, dumpBeans, dumpObject, dumpObjects, dumpStdErr, dumpThis, getBean, getBeans, getBeans, getContainedBeans, getContainedBeans, isAuto, isManaged, isUnmanaged, manage, removeBean, removeBeans, removeEventListener, setBeans, stop, unmanage, updateBean, updateBean, updateBeans
-
Methods inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle
addLifeCycleListener, getState, getState, getStopTimeout, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
isAutoStart
public boolean isAutoStart()
-
setAutoStart
public void setAutoStart(boolean autoStart)
-
setSystemProperty
public void setSystemProperty(java.lang.String key, java.lang.String value)
-
initialize
public void initialize() throws java.lang.ExceptionDescription copied from interface:InitializableBeanInvoke on initialization after it has set all bean properties supplied.- Specified by:
initializein interfaceInitializableBean- Throws:
java.lang.Exception- if initialization fails
-
destroy
public void destroy()
Description copied from interface:DisposableBeanA Dispose implementation that calls the destroy() method.- Specified by:
destroyin interfaceorg.eclipse.jetty.util.component.Destroyable- Specified by:
destroyin interfaceDisposableBean- Specified by:
destroyin interfaceorg.eclipse.jetty.server.Handler- Overrides:
destroyin classorg.eclipse.jetty.server.handler.HandlerWrapper
-
doStart
public void doStart() throws java.lang.Exception- Overrides:
doStartin classorg.eclipse.jetty.server.Server- Throws:
java.lang.Exception
-
doStop
public void doStop()
- Overrides:
doStopin classorg.eclipse.jetty.server.Server
-
-