Class WebsocketApi

    • Field Detail

      • EDGE_PRODUCT_TYPE

        public static final java.lang.String EDGE_PRODUCT_TYPE
        See Also:
        Constant Field Values
      • apiWorker

        protected final ApiWorker apiWorker
      • sessionTokens

        protected final java.util.Map<java.lang.String,​User> sessionTokens
        Stores valid session tokens for authentication via Cookie.
      • executor

        protected java.util.concurrent.ScheduledExecutorService executor
    • Constructor Detail

      • WebsocketApi

        public WebsocketApi()
    • Method Detail

      • activate

        protected void activate​(org.osgi.service.component.ComponentContext context,
                                io.openems.edge.controller.api.websocket.Config config)
      • logInfo

        protected final void logInfo​(org.slf4j.Logger log,
                                     java.lang.String message)
        Description copied from class: AbstractOpenemsComponent
        Log an info message including the Component ID.
        Overrides:
        logInfo in class AbstractOpenemsComponent
        Parameters:
        log - the Logger instance
        message - the message
      • logWarn

        protected final void logWarn​(org.slf4j.Logger log,
                                     java.lang.String message)
        Description copied from class: AbstractOpenemsComponent
        Log a warn message including the Component ID.
        Overrides:
        logWarn in class AbstractOpenemsComponent
        Parameters:
        log - the Logger instance
        message - the message
      • doAppend

        public void doAppend​(org.ops4j.pax.logging.spi.PaxLoggingEvent event)
        Specified by:
        doAppend in interface org.ops4j.pax.logging.spi.PaxAppender
      • handleEvent

        public void handleEvent​(org.osgi.service.event.Event event)
        Specified by:
        handleEvent in interface org.osgi.service.event.EventHandler