Class ServerMessageImpl

    • Constructor Detail

      • ServerMessageImpl

        public ServerMessageImpl()
    • Method Detail

      • getAssociated

        public ServerMessage.Mutable getAssociated()
        Specified by:
        getAssociated in interface ServerMessage
        Returns:
        a message associated with this message on the server. Typically this is a meta message that the current message is being sent in response to.
      • isLazy

        public boolean isLazy()
        Specified by:
        isLazy in interface ServerMessage
        Returns:
        true if the message is lazy and should not force the session's queue to be flushed
      • isHandled

        public boolean isHandled()
      • setBayeuxContext

        public void setBayeuxContext​(BayeuxContext context)
      • setServerTransport

        public void setServerTransport​(ServerTransport transport)
      • setLazy

        public void setLazy​(boolean lazy)
        Description copied from interface: ServerMessage.Mutable
        A lazy message does not provoke immediately delivery to the client but it will be delivered at first occasion or after a timeout expires
        Specified by:
        setLazy in interface ServerMessage.Mutable
        Parameters:
        lazy - whether the message is lazy
      • setHandled

        public void setHandled​(boolean handled)
      • freeze

        protected void freeze​(java.lang.String json)
      • isFrozen

        protected boolean isFrozen()
      • getJSON

        public java.lang.String getJSON()
      • getJSONBytes

        public byte[] getJSONBytes()
      • put

        public java.lang.Object put​(java.lang.String key,
                                    java.lang.Object value)
        Specified by:
        put in interface java.util.Map<java.lang.String,​java.lang.Object>
        Overrides:
        put in class java.util.HashMap<java.lang.String,​java.lang.Object>
      • entrySet

        public java.util.Set<java.util.Map.Entry<java.lang.String,​java.lang.Object>> entrySet()
        Specified by:
        entrySet in interface java.util.Map<java.lang.String,​java.lang.Object>
        Overrides:
        entrySet in class java.util.HashMap<java.lang.String,​java.lang.Object>
      • getExt

        public java.util.Map<java.lang.String,​java.lang.Object> getExt()
        Description copied from interface: Message
        Convenience method to retrieve the Message.EXT_FIELD
        Specified by:
        getExt in interface Message
        Overrides:
        getExt in class HashMapMessage
        Returns:
        the ext of the message