public class WebService extends Object implements AutoCloseable
| Modifier and Type | Field and Description |
|---|---|
static String |
ATTRIBUTE_PULSAR_NAME |
static String |
HANDLER_CACHE_CONTROL |
int |
maxConcurrentRequests |
| Constructor and Description |
|---|
WebService(PulsarService pulsar) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRestResources(String basePath,
String javaPackages,
boolean requiresAuthentication,
Map<String,Object> attributeMap) |
void |
addServlet(String path,
org.eclipse.jetty.servlet.ServletHolder servletHolder,
boolean requiresAuthentication,
Map<String,Object> attributeMap) |
void |
addStaticResources(String basePath,
String resourcePath) |
void |
close() |
Optional<Integer> |
getListenPortHTTP() |
Optional<Integer> |
getListenPortHTTPS() |
void |
start() |
public static final String ATTRIBUTE_PULSAR_NAME
public static final String HANDLER_CACHE_CONTROL
public final int maxConcurrentRequests
public WebService(PulsarService pulsar) throws PulsarServerException
PulsarServerExceptionpublic void addRestResources(String basePath, String javaPackages, boolean requiresAuthentication, Map<String,Object> attributeMap)
public void addServlet(String path, org.eclipse.jetty.servlet.ServletHolder servletHolder, boolean requiresAuthentication, Map<String,Object> attributeMap)
public void start()
throws PulsarServerException
PulsarServerExceptionpublic void close()
throws PulsarServerException
close in interface AutoCloseablePulsarServerExceptionCopyright © 2017–2022 Apache Software Foundation. All rights reserved.