类 WebServer

java.lang.Object
org.apache.pulsar.proxy.server.WebServer

public class WebServer extends Object
Manages web-service startup/stop on jetty server.
  • 字段详细资料

    • externalServicePort

      protected int externalServicePort
  • 构造器详细资料

    • WebServer

      public WebServer(ProxyConfiguration config, org.apache.pulsar.broker.authentication.AuthenticationService authenticationService)
  • 方法详细资料

    • getServiceUri

      public URI getServiceUri()
    • addServlet

      public void addServlet(String basePath, org.eclipse.jetty.servlet.ServletHolder servletHolder)
    • addServlet

      public void addServlet(String basePath, org.eclipse.jetty.servlet.ServletHolder servletHolder, List<org.apache.commons.lang3.tuple.Pair<String,Object>> attributes)
    • addServlet

      public void addServlet(String basePath, org.eclipse.jetty.servlet.ServletHolder servletHolder, List<org.apache.commons.lang3.tuple.Pair<String,Object>> attributes, boolean requireAuthentication)
    • addRestResources

      public void addRestResources(String basePath, String javaPackages, String attribute, Object attributeValue)
    • getExternalServicePort

      public int getExternalServicePort()
    • start

      public void start() throws Exception
      抛出:
      Exception
    • stop

      public void stop() throws Exception
      抛出:
      Exception
    • isStarted

      public boolean isStarted()
    • getListenPortHTTP

      public Optional<Integer> getListenPortHTTP()
    • getListenPortHTTPS

      public Optional<Integer> getListenPortHTTPS()