Class CommonServerEventWebSocket

    • Constructor Detail

      • CommonServerEventWebSocket

        public CommonServerEventWebSocket()
    • Method Detail

      • getTokenParameterName

        protected String getTokenParameterName()
        Description copied from class: SilverpeasServerEventWebSocket
        Gets the name of the parameter representing the token generated for current authenticated user and passed in the URI of the WebSocket endpoint.

        For example: With the @ServerEndpoint("/ws/{token}/sse/common") declaration, "token" MUST be returned by this method.

        Specified by:
        getTokenParameterName in class SilverpeasServerEventWebSocket
        Returns:
        a string representing the parameter name for the token.
      • prepareEventsOnOpening

        public default void prepareEventsOnOpening​(org.silverpeas.core.webapi.notification.sse.SilverpeasServerEventWebAccess.WebAccessContext wac,
                                                   Long initialLastServerEventId)