public class WebSocketWebResource extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ADMIN_PATH_V1 |
static String |
ADMIN_PATH_V2 |
static String |
ATTRIBUTE_PROXY_SERVICE_NAME |
protected javax.servlet.http.HttpServletRequest |
httpRequest |
protected javax.servlet.ServletContext |
servletContext |
protected javax.ws.rs.core.UriInfo |
uri |
| Constructor and Description |
|---|
WebSocketWebResource() |
| Modifier and Type | Method and Description |
|---|---|
AuthenticationDataHttps |
authData() |
String |
clientAppId()
Gets a caller id (IP + role).
|
protected boolean |
isAuthorized(org.apache.pulsar.common.naming.TopicName topic)
Checks if user is authorized to produce/consume on a given topic.
|
protected WebSocketService |
service() |
protected void |
validateSuperUserAccess()
Checks whether the user has Pulsar Super-User access to the system.
|
protected void |
validateUserAccess(org.apache.pulsar.common.naming.TopicName topic)
Checks if user has super-user access or user is authorized to produce/consume on a given topic.
|
public static final String ATTRIBUTE_PROXY_SERVICE_NAME
public static final String ADMIN_PATH_V1
public static final String ADMIN_PATH_V2
@Context protected javax.servlet.ServletContext servletContext
@Context protected javax.servlet.http.HttpServletRequest httpRequest
@Context protected javax.ws.rs.core.UriInfo uri
protected WebSocketService service()
public String clientAppId()
public AuthenticationDataHttps authData()
protected void validateSuperUserAccess()
org.apache.pulsar.common.util.RestException - if not authorizedprotected void validateUserAccess(org.apache.pulsar.common.naming.TopicName topic)
topic - org.apache.pulsar.common.util.RestExceptionCopyright © 2017–2022 Apache Software Foundation. All rights reserved.