Class JettyHttpServer

  • All Implemented Interfaces:
    com.yahoo.jdisc.service.ServerProvider, com.yahoo.jdisc.SharedResource

    public class JettyHttpServer
    extends com.yahoo.jdisc.service.AbstractServerProvider
    Author:
    Simon Thoresen Hult, bjorncs
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface com.yahoo.jdisc.SharedResource

        com.yahoo.jdisc.SharedResource.Debug
    • Field Summary

      • Fields inherited from interface com.yahoo.jdisc.SharedResource

        DEBUG, SYSTEM_PROPERTY_NAME_DEBUG
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      int getListenPort()  
      void start()  
      • Methods inherited from class com.yahoo.jdisc.service.AbstractServerProvider

        container
      • Methods inherited from class com.yahoo.jdisc.AbstractResource

        currentState, destroy, refer, refer, release, retainCount
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.yahoo.jdisc.SharedResource

        refer, refer, release
    • Constructor Detail

      • JettyHttpServer

        @Inject
        public JettyHttpServer​(com.yahoo.jdisc.service.CurrentContainer container,
                               com.yahoo.jdisc.Metric metric,
                               ServerConfig serverConfig,
                               ServletPathsConfig servletPathsConfig,
                               FilterBindings filterBindings,
                               Janitor janitor,
                               com.yahoo.component.provider.ComponentRegistry<ConnectorFactory> connectorFactories,
                               com.yahoo.component.provider.ComponentRegistry<org.eclipse.jetty.servlet.ServletHolder> servletHolders,
                               FilterInvoker filterInvoker,
                               RequestLog requestLog,
                               ConnectionLog connectionLog)
    • Method Detail

      • start

        public void start()
      • close

        public void close()
      • getListenPort

        public int getListenPort()