Package org.webswing.services.impl
Class ServerConnectionServiceImpl
- java.lang.Object
-
- org.webswing.services.impl.ServerConnectionServiceImpl
-
- All Implemented Interfaces:
org.webswing.ext.services.ServerConnectionService,ServerConnection.MessageListener
public class ServerConnectionServiceImpl extends java.lang.Object implements org.webswing.ext.services.ServerConnectionService, ServerConnection.MessageListener
- Author:
- Viktor_Meszaros This class is needed to achieve classpath isolation for swing application, all functionality dependent on external libs is implemented here.
-
-
Constructor Summary
Constructors Constructor Description ServerConnectionServiceImpl()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Map<java.lang.String,java.io.Serializable>deserializeUserAttributes(byte[] data)org.webswing.model.appframe.out.AccessibilityMsgOutgetAccessibilityInfo()org.webswing.model.appframe.out.AccessibilityMsgOutgetAccessibilityInfo(java.awt.Component c, int x, int y)static ServerConnectionServiceImplgetInstance()voidinitialize()voidonMessage(org.webswing.model.app.in.ServerToAppFrameMsgIn msgIn)voidreconnect(java.lang.String reconnectUrl)voidsendObject(org.webswing.model.app.out.AppToServerFrameMsgOut msgOut, org.webswing.model.appframe.out.AppFrameMsgOut frame)org.webswing.model.SyncObjectResponsesendObjectSync(org.webswing.model.app.out.AppToServerFrameMsgOut msgOut, org.webswing.model.appframe.out.AppFrameMsgOut frame, java.lang.String correlationId)
-
-
-
Method Detail
-
getInstance
public static ServerConnectionServiceImpl getInstance()
-
initialize
public void initialize()
-
reconnect
public void reconnect(java.lang.String reconnectUrl)
- Specified by:
reconnectin interfaceorg.webswing.ext.services.ServerConnectionService
-
sendObject
public void sendObject(org.webswing.model.app.out.AppToServerFrameMsgOut msgOut, org.webswing.model.appframe.out.AppFrameMsgOut frame)- Specified by:
sendObjectin interfaceorg.webswing.ext.services.ServerConnectionService
-
sendObjectSync
public org.webswing.model.SyncObjectResponse sendObjectSync(org.webswing.model.app.out.AppToServerFrameMsgOut msgOut, org.webswing.model.appframe.out.AppFrameMsgOut frame, java.lang.String correlationId) throws java.lang.Exception- Specified by:
sendObjectSyncin interfaceorg.webswing.ext.services.ServerConnectionService- Throws:
java.lang.Exception
-
getAccessibilityInfo
public org.webswing.model.appframe.out.AccessibilityMsgOut getAccessibilityInfo()
- Specified by:
getAccessibilityInfoin interfaceorg.webswing.ext.services.ServerConnectionService
-
getAccessibilityInfo
public org.webswing.model.appframe.out.AccessibilityMsgOut getAccessibilityInfo(java.awt.Component c, int x, int y)- Specified by:
getAccessibilityInfoin interfaceorg.webswing.ext.services.ServerConnectionService
-
onMessage
public void onMessage(org.webswing.model.app.in.ServerToAppFrameMsgIn msgIn)
- Specified by:
onMessagein interfaceServerConnection.MessageListener
-
deserializeUserAttributes
public java.util.Map<java.lang.String,java.io.Serializable> deserializeUserAttributes(byte[] data) throws java.io.IOException- Specified by:
deserializeUserAttributesin interfaceorg.webswing.ext.services.ServerConnectionService- Throws:
java.io.IOException
-
-