Class StompFrame

    • Field Detail

      • NO_DATA

        public static final byte[] NO_DATA
    • Constructor Detail

      • StompFrame

        public StompFrame​(String command)
      • StompFrame

        public StompFrame()
    • Method Detail

      • getAction

        public String getAction()
      • setAction

        public void setAction​(String command)
      • getContent

        public byte[] getContent()
      • getBody

        public String getBody()
      • setContent

        public void setContent​(byte[] data)
      • getCommandId

        public int getCommandId()
        Specified by:
        getCommandId in interface Command
        Returns:
        the unique ID of this request used to map responses to requests
      • getFrom

        public Endpoint getFrom()
        Description copied from interface: Command
        The endpoint within the transport where this message came from which could be null if the transport only supports a single endpoint.
        Specified by:
        getFrom in interface Command
      • getTo

        public Endpoint getTo()
        Description copied from interface: Command
        The endpoint within the transport where this message is going to - null means all endpoints.
        Specified by:
        getTo in interface Command
      • isBrokerInfo

        public boolean isBrokerInfo()
        Specified by:
        isBrokerInfo in interface Command
      • isMessage

        public boolean isMessage()
        Specified by:
        isMessage in interface Command
      • isMessageAck

        public boolean isMessageAck()
        Specified by:
        isMessageAck in interface Command
      • isResponse

        public boolean isResponse()
        Specified by:
        isResponse in interface Command
      • setCommandId

        public void setCommandId​(int value)
        Specified by:
        setCommandId in interface Command
      • setResponseRequired

        public void setResponseRequired​(boolean responseRequired)
        Specified by:
        setResponseRequired in interface Command
      • format

        public String format()
      • format

        public String format​(boolean forLogging)
      • getTransportContext

        public Object getTransportContext()
        Transports may wish to associate additional data with the connection. For example, an SSL transport may use this field to attach the client certificates used when the connection was established.
        Returns:
        the transport context.
      • setTransportContext

        public void setTransportContext​(Object transportContext)
        Transports may wish to associate additional data with the connection. For example, an SSL transport may use this field to attach the client certificates used when the connection was established.
        Parameters:
        transportContext - value used to set the transport context