类 WebSocketWebResource
java.lang.Object
org.apache.pulsar.websocket.admin.WebSocketWebResource
- 直接已知子类:
WebSocketProxyStatsBase
-
字段概要
字段 -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明authData()Gets a caller id (IP + role).protected booleanisAuthorized(org.apache.pulsar.common.naming.TopicName topic) Checks if user is authorized to produce/consume on a given topic.protected WebSocketServiceservice()protected voidChecks whether the user has Pulsar Super-User access to the system.protected voidvalidateUserAccess(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.
-
字段详细资料
-
ATTRIBUTE_PROXY_SERVICE_NAME
- 另请参阅:
-
ADMIN_PATH_V1
- 另请参阅:
-
ADMIN_PATH_V2
- 另请参阅:
-
servletContext
@Context protected javax.servlet.ServletContext servletContext -
httpRequest
@Context protected javax.servlet.http.HttpServletRequest httpRequest -
uri
@Context protected javax.ws.rs.core.UriInfo uri
-
-
构造器详细资料
-
WebSocketWebResource
public WebSocketWebResource()
-
-
方法详细资料
-
service
-
clientAppId
Gets a caller id (IP + role).- 返回:
- the web service caller identification
-
authData
-
validateSuperUserAccess
protected void validateSuperUserAccess()Checks whether the user has Pulsar Super-User access to the system.- 抛出:
org.apache.pulsar.common.util.RestException- if not authorized
-
validateUserAccess
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.- 参数:
topic-- 抛出:
org.apache.pulsar.common.util.RestException
-
isAuthorized
Checks if user is authorized to produce/consume on a given topic.- 参数:
topic-- 返回:
- 抛出:
Exception
-