Class 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.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.component.Container

        org.eclipse.jetty.util.component.Container.InheritedListener, org.eclipse.jetty.util.component.Container.Listener
      • Nested classes/interfaces inherited from interface org.eclipse.jetty.util.component.LifeCycle

        org.eclipse.jetty.util.component.LifeCycle.Listener
    • Field Summary

      • Fields inherited from class org.eclipse.jetty.server.handler.HandlerWrapper

        _handler
      • Fields inherited from class org.eclipse.jetty.util.component.AbstractLifeCycle

        FAILED, RUNNING, STARTED, STARTING, STOPPED, STOPPING
      • Fields inherited from interface org.eclipse.jetty.util.component.Dumpable

        KEY
    • 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
      void destroy()
      A Dispose implementation that calls the destroy() method.
      void doStart()  
      void doStop()  
      void initialize()
      Invoke on initialization after it has set all bean properties supplied.
      boolean isAutoStart()  
      void setAutoStart​(boolean autoStart)  
      void setSystemProperty​(java.lang.String key, java.lang.String value)  
      • Methods inherited from class org.eclipse.jetty.server.Server

        addConnector, clearAttributes, dump, getAttribute, getAttributeNames, 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.server.handler.AbstractHandler

        doError, getServer
      • 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
      • Methods inherited from interface org.eclipse.jetty.util.component.Dumpable

        dumpSelf
      • Methods inherited from interface org.eclipse.jetty.util.component.LifeCycle

        addLifeCycleListener, isFailed, isRunning, isStarted, isStarting, isStopped, isStopping, removeLifeCycleListener, start, stop
    • Constructor Detail

      • JettyServer

        public JettyServer()
      • JettyServer

        public JettyServer​(int port)
      • JettyServer

        public JettyServer​(org.eclipse.jetty.util.thread.ThreadPool pool)
    • 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.Exception
        Description copied from interface: InitializableBean
        Invoke on initialization after it has set all bean properties supplied.
        Specified by:
        initialize in interface InitializableBean
        Throws:
        java.lang.Exception - if initialization fails
      • destroy

        public void destroy()
        Description copied from interface: DisposableBean
        A Dispose implementation that calls the destroy() method.
        Specified by:
        destroy in interface org.eclipse.jetty.util.component.Destroyable
        Specified by:
        destroy in interface DisposableBean
        Specified by:
        destroy in interface org.eclipse.jetty.server.Handler
        Overrides:
        destroy in class org.eclipse.jetty.server.handler.HandlerWrapper
      • doStart

        public void doStart()
                     throws java.lang.Exception
        Overrides:
        doStart in class org.eclipse.jetty.server.Server
        Throws:
        java.lang.Exception
      • doStop

        public void doStop()
        Overrides:
        doStop in class org.eclipse.jetty.server.Server