Package org.apache.pulsar.broker.web
Class WebService
java.lang.Object
org.apache.pulsar.broker.web.WebService
- All Implemented Interfaces:
AutoCloseable
Web Service embedded into Pulsar.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRestResource(String basePath, boolean requiresAuthentication, Map<String, Object> attributeMap, boolean useSharedJsonMapperProvider, Class<?>... resourceClasses) voidaddRestResources(String basePath, boolean requiresAuthentication, Map<String, Object> attributeMap, boolean useSharedJsonMapperProvider, String... javaPackages) voidaddServlet(String path, org.eclipse.jetty.servlet.ServletHolder servletHolder, boolean requiresAuthentication, Map<String, Object> attributeMap) voidaddStaticResources(String basePath, String resourcePath) protected org.apache.pulsar.common.util.PulsarSslConfigurationbuildSslConfiguration(ServiceConfiguration serviceConfig) voidclose()protected voidvoidstart()voidupdateHttpRequestsFailOnUnknownPropertiesEnabled(boolean httpRequestsFailOnUnknownPropertiesEnabled)
-
Field Details
-
ATTRIBUTE_PULSAR_NAME
- See Also:
-
HANDLER_CACHE_CONTROL
- See Also:
-
-
Constructor Details
-
WebService
- Throws:
PulsarServerException
-
-
Method Details
-
updateHttpRequestsFailOnUnknownPropertiesEnabled
public void updateHttpRequestsFailOnUnknownPropertiesEnabled(boolean httpRequestsFailOnUnknownPropertiesEnabled) -
addRestResources
-
addRestResource
-
addServlet
-
addStaticResources
-
start
- Throws:
PulsarServerException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
PulsarServerException
-
getListenPortHTTP
-
getListenPortHTTPS
-
buildSslConfiguration
protected org.apache.pulsar.common.util.PulsarSslConfiguration buildSslConfiguration(ServiceConfiguration serviceConfig) -
refreshSslContext
protected void refreshSslContext()
-