Class 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.
    • 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.AccessibilityMsgOut getAccessibilityInfo()  
      org.webswing.model.appframe.out.AccessibilityMsgOut getAccessibilityInfo​(java.awt.Component c, int x, int y)  
      static ServerConnectionServiceImpl getInstance()  
      void initialize()  
      void onMessage​(org.webswing.model.app.in.ServerToAppFrameMsgIn msgIn)  
      void reconnect​(java.lang.String reconnectUrl)  
      void sendObject​(org.webswing.model.app.out.AppToServerFrameMsgOut msgOut, org.webswing.model.appframe.out.AppFrameMsgOut frame)  
      org.webswing.model.SyncObjectResponse sendObjectSync​(org.webswing.model.app.out.AppToServerFrameMsgOut msgOut, org.webswing.model.appframe.out.AppFrameMsgOut frame, java.lang.String correlationId)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServerConnectionServiceImpl

        public ServerConnectionServiceImpl()
    • Method Detail

      • initialize

        public void initialize()
      • reconnect

        public void reconnect​(java.lang.String reconnectUrl)
        Specified by:
        reconnect in interface org.webswing.ext.services.ServerConnectionService
      • sendObject

        public void sendObject​(org.webswing.model.app.out.AppToServerFrameMsgOut msgOut,
                               org.webswing.model.appframe.out.AppFrameMsgOut frame)
        Specified by:
        sendObject in interface org.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:
        sendObjectSync in interface org.webswing.ext.services.ServerConnectionService
        Throws:
        java.lang.Exception
      • getAccessibilityInfo

        public org.webswing.model.appframe.out.AccessibilityMsgOut getAccessibilityInfo()
        Specified by:
        getAccessibilityInfo in interface org.webswing.ext.services.ServerConnectionService
      • getAccessibilityInfo

        public org.webswing.model.appframe.out.AccessibilityMsgOut getAccessibilityInfo​(java.awt.Component c,
                                                                                        int x,
                                                                                        int y)
        Specified by:
        getAccessibilityInfo in interface org.webswing.ext.services.ServerConnectionService
      • deserializeUserAttributes

        public java.util.Map<java.lang.String,​java.io.Serializable> deserializeUserAttributes​(byte[] data)
                                                                                             throws java.io.IOException
        Specified by:
        deserializeUserAttributes in interface org.webswing.ext.services.ServerConnectionService
        Throws:
        java.io.IOException