类 WebServer
java.lang.Object
org.apache.pulsar.proxy.server.WebServer
Manages web-service startup/stop on jetty server.
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidaddRestResource(String basePath, String attribute, Object attributeValue, Class<?> resourceClass) Add a REST resource to the servlet context with authentication coverage.voidaddRestResource(String basePath, String attribute, Object attributeValue, Class<?> resourceClass, boolean requireAuthentication) Add a REST resource to the servlet context.voidaddServlet(String basePath, org.eclipse.jetty.servlet.ServletHolder servletHolder) voidaddServlet(String basePath, org.eclipse.jetty.servlet.ServletHolder servletHolder, List<org.apache.commons.lang3.tuple.Pair<String, Object>> attributes) voidaddServlet(String basePath, org.eclipse.jetty.servlet.ServletHolder servletHolder, List<org.apache.commons.lang3.tuple.Pair<String, Object>> attributes, boolean requireAuthentication) intbooleanvoidstart()voidstop()
-
字段详细资料
-
externalServicePort
protected int externalServicePort
-
-
构造器详细资料
-
WebServer
-
-
方法详细资料
-
getServiceUri
-
addServlet
-
addServlet
-
addServlet
-
addRestResource
public void addRestResource(String basePath, String attribute, Object attributeValue, Class<?> resourceClass) Add a REST resource to the servlet context with authentication coverage.- 参数:
basePath- The base path for the resource.attribute- An attribute associated with the resource.attributeValue- The value of the attribute.resourceClass- The class representing the resource.- 另请参阅:
-
addRestResource
public void addRestResource(String basePath, String attribute, Object attributeValue, Class<?> resourceClass, boolean requireAuthentication) Add a REST resource to the servlet context.- 参数:
basePath- The base path for the resource.attribute- An attribute associated with the resource.attributeValue- The value of the attribute.resourceClass- The class representing the resource.requireAuthentication- A boolean indicating whether authentication is required for this resource.
-
getExternalServicePort
public int getExternalServicePort() -
start
- 抛出:
Exception
-
stop
- 抛出:
Exception
-
isStarted
public boolean isStarted() -
getListenPortHTTP
-
getListenPortHTTPS
-