Class AbstractRestApi

    • Constructor Detail

      • AbstractRestApi

        public AbstractRestApi​(java.lang.String implementationName,
                               ChannelId[] firstInitialChannelIds,
                               ChannelId[]... furtherInitialChannelIds)
    • Method Detail

      • activate

        protected void activate​(org.osgi.service.component.ComponentContext context,
                                java.lang.String id,
                                java.lang.String alias,
                                boolean enabled,
                                boolean isDebugModeEnabled,
                                int apiTimeout,
                                int port,
                                int connectionlimit)
      • logInfo

        protected 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 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
      • logError

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

        protected boolean isDebugModeEnabled()
      • getUserService

        protected abstract UserService getUserService()
        Gets the UserService.
        Returns:
        the service
      • getComponentManager

        protected abstract ComponentManager getComponentManager()
        Gets the ComponentManager.
        Returns:
        the service
      • getAccessMode

        protected abstract AccessMode getAccessMode()
        Gets the AccessMode.
        Returns:
        the AccessMode