类 WebSocketWebResource

    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      org.apache.pulsar.broker.authentication.AuthenticationDataHttps authData()  
      java.lang.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
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • ATTRIBUTE_PROXY_SERVICE_NAME

        public static final java.lang.String ATTRIBUTE_PROXY_SERVICE_NAME
        另请参阅:
        常量字段值
      • ADMIN_PATH_V1

        public static final java.lang.String ADMIN_PATH_V1
        另请参阅:
        常量字段值
      • ADMIN_PATH_V2

        public static final java.lang.String 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()
    • 方法详细资料

      • clientAppId

        public java.lang.String clientAppId()
        Gets a caller id (IP + role)
        返回:
        the web service caller identification
      • authData

        public org.apache.pulsar.broker.authentication.AuthenticationDataHttps 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

        protected boolean isAuthorized​(org.apache.pulsar.common.naming.TopicName topic)
                                throws java.lang.Exception
        Checks if user is authorized to produce/consume on a given topic
        参数:
        topic -
        返回:
        抛出:
        java.lang.Exception