Class FSConnection
java.lang.Object
de.xima.fc.fs.FSConnection
Klasse zum Verbinden und Trennen der Verbindung mit dem FServer
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescription<TEvent extends Serializable>
voidfireEvent(TEvent event) Fires an event on the frontend-server, if connected.booleanPulls the configuration from the frontend server that can be edited via the backend UI.voidpushConfigFile(File file) voidpushConfigurableProperties(FSConfigurableProperties configurableProperties) Pushes the given configuration to the frontend server.voidshutdown()voidboolean
-
Method Details
-
testConnection
-
getStatus
- Returns:
- the current
EConnectionStatus
-
getSession
- Returns:
- the current
IFSServer
-
getServerInfo
- Returns:
- the current
FsServerInfoDtoof the connection, if connected.
-
isConnected
public boolean isConnected() -
pushConfigFile
-
pushConfigurableProperties
public void pushConfigurableProperties(FSConfigurableProperties configurableProperties) throws Exception Pushes the given configuration to the frontend server.- Parameters:
configurableProperties- The error pages config to push.- Throws:
Exception- When the push fails.
-
pullConfigurableProperties
Pulls the configuration from the frontend server that can be edited via the backend UI.- Returns:
- The frontend server configuration. Never null, but may be empty.
- Throws:
Exception- When the pull fails.
-
fireEvent
Fires an event on the frontend-server, if connected.- Type Parameters:
TEvent- the type of the event, must be serializable- Parameters:
event- the event to fire- Throws:
IllegalArgumentException- if the event is null
-
startReconnect
public void startReconnect() -
shutdown
public void shutdown()
-