Package net.stoerr.chatgpt.codevengine
Class UserGlobalConfig
- java.lang.Object
-
- net.stoerr.chatgpt.codevengine.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 Summary
Fields Modifier and Type Field Description static String
COOKIE_CODEVACCESSTOKEN
For local verification of responses from the browser - a cookie that can contain the service access token.
-
Constructor Summary
Constructors Constructor Description UserGlobalConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addHttpsConnector(org.eclipse.jetty.server.Server server)
String
getExternUrl()
String
getOpenaiToken()
jakarta.servlet.Filter
getSecretFilter()
boolean
readAndCheckConfiguration(String globalConfigDir)
Reads the httpsConfigFile if it exists.
-
-
-
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
-
-
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()
-
-