Package de.xima.fc.api
Class APISettings
- java.lang.Object
-
- de.xima.fc.api.APISettings
-
public final class APISettings extends Object
Current settings of the API.- Author:
- XIMA MEDIA GmbH
-
-
Constructor Summary
Constructors Constructor Description APISettings()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidchangeScope(FrontendServer frontendServer)Changes the scope of the current frontend server.FrontendServergetFServer()Gets the current frontend server entity.IHandlerProvidergetHandlerProvider()IServerConfiggetServerConfig()Returns the configuration of this server.voidinit(IHandlerProvider handlerProvider)Initializes the handler provider.booleanisConnected()booleanisFrontendServer()Deprecated.CheckIWebAppDescriptor.getServerType()via theWebAppContextinstead.voidsetFrontendServer(boolean isFrontendServer)Deprecated.Do not change the state of the web app! For checking the type of web app useIWebAppDescriptor.getServerType()via theWebAppContextvoidupdateFrontendServerEntity()Updates the currently used frontend server entity.
-
-
-
Method Detail
-
getServerConfig
public IServerConfig getServerConfig()
Returns the configuration of this server.- Returns:
- the configuration of this server.
-
getFServer
public FrontendServer 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.
-
updateFrontendServerEntity
public void updateFrontendServerEntity()
Updates the currently used frontend server entity.
-
isConnected
public boolean isConnected()
- Returns:
trueif the api is connected via frontend server or is a master server.falseotherwise.
-
getHandlerProvider
public IHandlerProvider getHandlerProvider()
- Returns:
- the handler provider.
-
isFrontendServer
@Deprecated public boolean isFrontendServer()
Deprecated.CheckIWebAppDescriptor.getServerType()via theWebAppContextinstead.- Returns:
trueif the current web app is a frontend server andfalseotherwise.
-
setFrontendServer
@Deprecated public void setFrontendServer(boolean isFrontendServer)
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
-
init
public void init(IHandlerProvider handlerProvider)
Initializes the handler provider.- Parameters:
handlerProvider- to be set.
-
changeScope
public void changeScope(FrontendServer frontendServer)
Changes the scope of the current frontend server.- Parameters:
frontendServer- the new frontend server to use ornullto remove the current frontend server.
-
-