Class ProxyServer
java.lang.Object
org.apache.pulsar.websocket.service.ProxyServer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddRestResource(String basePath, String attribute, Object attributeValue, Class<?> resourceClass) voidaddWebSocketServlet(String basePath, javax.servlet.Servlet socketServlet) protected org.apache.pulsar.common.util.PulsarSslConfigurationprotected voidvoidstart()voidstop()
-
Constructor Details
-
ProxyServer
public ProxyServer(WebSocketProxyConfiguration config) throws org.apache.pulsar.client.api.PulsarClientException, MalformedURLException, PulsarServerException - Throws:
org.apache.pulsar.client.api.PulsarClientExceptionMalformedURLExceptionPulsarServerException
-
-
Method Details
-
addWebSocketServlet
public void addWebSocketServlet(String basePath, javax.servlet.Servlet socketServlet) throws javax.servlet.ServletException, javax.websocket.DeploymentException - Throws:
javax.servlet.ServletExceptionjavax.websocket.DeploymentException
-
addRestResource
-
start
- Throws:
PulsarServerException
-
stop
- Throws:
Exception
-
getListenPortHTTP
-
getListenPortHTTPS
-
buildSslConfiguration
protected org.apache.pulsar.common.util.PulsarSslConfiguration buildSslConfiguration(WebSocketProxyConfiguration config) -
refreshSslContext
protected void refreshSslContext()
-