Class APISettings
java.lang.Object
de.xima.fc.api.APISettings
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidchangeScope(FrontendServer frontendServer) Changes the scope of the current frontend server.Gets the current frontend server entity.voidinit(IHandlerProvider handlerProvider) Initializes the handler provider.booleanbooleanDeprecated.voidsetFrontendServer(boolean isFrontendServer) Deprecated.Do not change the state of the web app!voidUpdates the currently used frontend server entity.
-
Constructor Details
-
APISettings
public APISettings()
-
-
Method Details
-
changeScope
Changes the scope of the current frontend server.- Parameters:
frontendServer- the new frontend server to use ornullto remove the current frontend server.
-
getFServer
Gets the current frontend server entity.- Returns:
- if the current server is a frontend server and is connected to a master server, the currently connected
entity,
nullotherwise.
-
getHandlerProvider
- Returns:
- the handler provider.
-
init
Initializes the handler provider.- Parameters:
handlerProvider- to be set.
-
isConnected
public boolean isConnected()- Returns:
trueif the api is connected via frontend server or is a master server.falseotherwise.
-
isFrontendServer
Deprecated.CheckIWebAppDescriptor.getServerType()via theWebAppContextinstead.- Returns:
trueif the current web app is a frontend server andfalseotherwise.
-
setFrontendServer
Deprecated.Do not change the state of the web app! For checking the type of web app useIWebAppDescriptor.getServerType()via theWebAppContext- Parameters:
isFrontendServer- to set
-
updateFrontendServerEntity
public void updateFrontendServerEntity()Updates the currently used frontend server entity.
-
IWebAppDescriptor.getServerType()via theWebAppContextinstead.