Class MainFrameworkController

  • All Implemented Interfaces:
    org.springframework.beans.factory.InitializingBean

    @RestController
    public class MainFrameworkController
    extends java.lang.Object
    implements org.springframework.beans.factory.InitializingBean
    • Field Detail

      • messagingTemplate

        @Autowired
        private org.springframework.messaging.simp.SimpMessagingTemplate messagingTemplate
      • simpUserRegistry

        @Autowired
        private org.springframework.messaging.simp.user.SimpUserRegistry simpUserRegistry
      • sessionRepository

        @Autowired
        private org.springframework.session.data.mongo.MongoIndexedSessionRepository sessionRepository
      • logger

        private static final org.slf4j.Logger logger
    • Constructor Detail

      • MainFrameworkController

        public MainFrameworkController()
    • Method Detail

      • renderHandler

        @MessageMapping("/msm/render")
        public void renderHandler​(BasicRequestMessage request,
                                  org.springframework.messaging.simp.SimpMessageHeaderAccessor headerAccessor)
                           throws java.lang.Exception
        Sending a message directly from the websocket client.
        Parameters:
        request - basic type of request message
        headerAccessor - header accessor keeps headers of WebSocket request
        Throws:
        java.lang.Exception - any exception
      • handleBeanUpdate

        @MessageMapping("/beans/update")
        public void handleBeanUpdate​(BeanRequestMessage request,
                                     org.springframework.messaging.simp.SimpMessageHeaderAccessor headerAccessor)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • handleBeanInvoke

        @MessageMapping("/beans/invoke")
        public void handleBeanInvoke​(BeanRequestMessage request,
                                     org.springframework.messaging.simp.SimpMessageHeaderAccessor headerAccessor)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • handleRepository

        @MessageMapping("/repository/call")
        public void handleRepository​(RepositoryRequestMessage request,
                                     org.springframework.messaging.simp.SimpMessageHeaderAccessor headerAccessor)
                              throws java.lang.Exception
        Throws:
        java.lang.Exception
      • dataBaseHandler

        @MessageMapping("/documents")
        public void dataBaseHandler​(DocumentRequestMessage request,
                                    org.springframework.messaging.simp.SimpMessageHeaderAccessor headerAccessor)
                             throws java.lang.Exception
        Database Web-Socket handler.
        Parameters:
        request - document request object
        headerAccessor - header accessor keeps headers of WebSocket request
        Throws:
        java.lang.Exception - any exception
      • jsonBeanHandler

        @MessageMapping("/json/bean/{type}")
        public void jsonBeanHandler​(BeanRequestMessage request,
                                    org.springframework.messaging.simp.SimpMessageHeaderAccessor headerAccessor,
                                    @DestinationVariable
                                    ActionType type)
                             throws java.lang.Exception
        Json Web-Socket handler.
        Parameters:
        request - bean request object
        headerAccessor - header accessor keeps headers of WebSocket request
        type - action type INVOKE,UPDATE
        Throws:
        java.lang.Exception - any exception
      • jsonRepositoryHandler

        @MessageMapping("/json/repository/{type}")
        public void jsonRepositoryHandler​(RepositoryRequestMessage request,
                                          org.springframework.messaging.simp.SimpMessageHeaderAccessor headerAccessor,
                                          @DestinationVariable
                                          ActionType type)
                                   throws java.lang.Exception
        Json Web-Socket handler.
        Parameters:
        headerAccessor - header accessor keeps headers of WebSocket request
        request - repository request object
        type - action type INVOKE,UPDATE
        Throws:
        java.lang.Exception - any exception
      • jsonDatabaseHandler

        @MessageMapping("/json/database")
        public void jsonDatabaseHandler​(DocumentRequestMessage request,
                                        org.springframework.messaging.simp.SimpMessageHeaderAccessor headerAccessor)
                                 throws java.lang.Exception
        Json Web-Socket handler.
        Parameters:
        headerAccessor - header accessor keeps headers of WebSocket request
        request - document request object
        Throws:
        java.lang.Exception - any exception
      • afterPropertiesSet

        public void afterPropertiesSet()
                                throws java.lang.Exception
        Specified by:
        afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
        Throws:
        java.lang.Exception