Class JettyHttpServer

java.lang.Object
com.sun.net.httpserver.HttpServer
org.eclipse.jetty.http.spi.JettyHttpServer

public class JettyHttpServer extends com.sun.net.httpserver.HttpServer
Jetty implementation of HttpServer.
  • Field Details

  • Constructor Details

    • JettyHttpServer

      public JettyHttpServer(Server server, boolean shared)
    • JettyHttpServer

      public JettyHttpServer(Server server, boolean shared, HttpConfiguration configuration)
  • Method Details

    • getHttpConfiguration

      public HttpConfiguration getHttpConfiguration()
    • bind

      public void bind(InetSocketAddress addr, int backlog) throws IOException
      Specified by:
      bind in class com.sun.net.httpserver.HttpServer
      Throws:
      IOException
    • getServer

      protected Server getServer()
    • newServerConnector

      protected ServerConnector newServerConnector(InetSocketAddress addr, int backlog)
    • getAddress

      public InetSocketAddress getAddress()
      Specified by:
      getAddress in class com.sun.net.httpserver.HttpServer
    • start

      public void start()
      Specified by:
      start in class com.sun.net.httpserver.HttpServer
    • setExecutor

      public void setExecutor(Executor executor)
      Specified by:
      setExecutor in class com.sun.net.httpserver.HttpServer
    • getExecutor

      public Executor getExecutor()
      Specified by:
      getExecutor in class com.sun.net.httpserver.HttpServer
    • stop

      public void stop(int delay)
      Specified by:
      stop in class com.sun.net.httpserver.HttpServer
    • cleanUpContexts

      private void cleanUpContexts()
    • cleanUpConnectors

      private void cleanUpConnectors()
    • createContext

      public com.sun.net.httpserver.HttpContext createContext(String path, com.sun.net.httpserver.HttpHandler httpHandler)
      Specified by:
      createContext in class com.sun.net.httpserver.HttpServer
    • findContextHandlerCollection

      private ContextHandlerCollection findContextHandlerCollection(Handler[] handlers)
    • checkIfContextIsFree

      private void checkIfContextIsFree(String path)
    • createContext

      public com.sun.net.httpserver.HttpContext createContext(String path)
      Specified by:
      createContext in class com.sun.net.httpserver.HttpServer
    • removeContext

      public void removeContext(String path) throws IllegalArgumentException
      Specified by:
      removeContext in class com.sun.net.httpserver.HttpServer
      Throws:
      IllegalArgumentException
    • removeContext

      public void removeContext(com.sun.net.httpserver.HttpContext context)
      Specified by:
      removeContext in class com.sun.net.httpserver.HttpServer