Class UserGlobalConfig


  • public class UserGlobalConfig
    extends Object
    Reads the global configuration from the configuration directory in the users homedir, which is used everywhere, no matter where the plugin is started.
    • Field Detail

      • COOKIE_CODEVACCESSTOKEN

        public static final String COOKIE_CODEVACCESSTOKEN
        For local verification of responses from the browser - a cookie that can contain the service access token. You can set that manually in the browser when debugging.
        See Also:
        Constant Field Values
    • Constructor Detail

      • UserGlobalConfig

        public UserGlobalConfig()
    • Method Detail

      • readAndCheckConfiguration

        public boolean readAndCheckConfiguration​(@Nullable
                                                 String globalConfigDir)
                                          throws IOException
        Reads the httpsConfigFile if it exists. Return true if configuration could be read completely.
        Throws:
        IOException
      • getSecretFilter

        public jakarta.servlet.Filter getSecretFilter()
      • addHttpsConnector

        public void addHttpsConnector​(org.eclipse.jetty.server.Server server)
      • getExternUrl

        public String getExternUrl()
      • getOpenaiToken

        public String getOpenaiToken()