Class StompFrame

java.lang.Object
org.apache.activemq.transport.stomp.StompFrame
All Implemented Interfaces:
org.apache.activemq.command.Command, org.apache.activemq.command.DataStructure
Direct Known Subclasses:
StompFrameError

public class StompFrame extends Object implements org.apache.activemq.command.Command
Represents all the data in a STOMP frame.
Author:
chirino
  • Field Details

    • NO_DATA

      public static final byte[] NO_DATA
  • Constructor Details

    • StompFrame

      public StompFrame(String command)
    • StompFrame

      public StompFrame(String command, Map<String,String> headers)
    • StompFrame

      public StompFrame(String command, Map<String,String> headers, byte[] data)
    • StompFrame

      public StompFrame()
  • Method Details

    • getAction

      public String getAction()
    • setAction

      public void setAction(String command)
    • getContent

      public byte[] getContent()
    • getBody

      public String getBody()
    • setContent

      public void setContent(byte[] data)
    • getHeaders

      public Map<String,String> getHeaders()
    • setHeaders

      public void setHeaders(Map<String,String> headers)
    • getCommandId

      public int getCommandId()
      Specified by:
      getCommandId in interface org.apache.activemq.command.Command
    • getFrom

      public org.apache.activemq.command.Endpoint getFrom()
      Specified by:
      getFrom in interface org.apache.activemq.command.Command
    • getTo

      public org.apache.activemq.command.Endpoint getTo()
      Specified by:
      getTo in interface org.apache.activemq.command.Command
    • isBrokerInfo

      public boolean isBrokerInfo()
      Specified by:
      isBrokerInfo in interface org.apache.activemq.command.Command
    • isMessage

      public boolean isMessage()
      Specified by:
      isMessage in interface org.apache.activemq.command.Command
    • isMessageAck

      public boolean isMessageAck()
      Specified by:
      isMessageAck in interface org.apache.activemq.command.Command
    • isMessageDispatch

      public boolean isMessageDispatch()
      Specified by:
      isMessageDispatch in interface org.apache.activemq.command.Command
    • isMessageDispatchNotification

      public boolean isMessageDispatchNotification()
      Specified by:
      isMessageDispatchNotification in interface org.apache.activemq.command.Command
    • isResponse

      public boolean isResponse()
      Specified by:
      isResponse in interface org.apache.activemq.command.Command
    • isResponseRequired

      public boolean isResponseRequired()
      Specified by:
      isResponseRequired in interface org.apache.activemq.command.Command
    • isShutdownInfo

      public boolean isShutdownInfo()
      Specified by:
      isShutdownInfo in interface org.apache.activemq.command.Command
    • isConnectionControl

      public boolean isConnectionControl()
      Specified by:
      isConnectionControl in interface org.apache.activemq.command.Command
    • isConsumerControl

      public boolean isConsumerControl()
      Specified by:
      isConsumerControl in interface org.apache.activemq.command.Command
    • isWireFormatInfo

      public boolean isWireFormatInfo()
      Specified by:
      isWireFormatInfo in interface org.apache.activemq.command.Command
    • setCommandId

      public void setCommandId(int value)
      Specified by:
      setCommandId in interface org.apache.activemq.command.Command
    • setFrom

      public void setFrom(org.apache.activemq.command.Endpoint from)
      Specified by:
      setFrom in interface org.apache.activemq.command.Command
    • setResponseRequired

      public void setResponseRequired(boolean responseRequired)
      Specified by:
      setResponseRequired in interface org.apache.activemq.command.Command
    • setTo

      public void setTo(org.apache.activemq.command.Endpoint to)
      Specified by:
      setTo in interface org.apache.activemq.command.Command
    • visit

      public org.apache.activemq.command.Response visit(org.apache.activemq.state.CommandVisitor visitor) throws Exception
      Specified by:
      visit in interface org.apache.activemq.command.Command
      Throws:
      Exception
    • getDataStructureType

      public byte getDataStructureType()
      Specified by:
      getDataStructureType in interface org.apache.activemq.command.DataStructure
    • isMarshallAware

      public boolean isMarshallAware()
      Specified by:
      isMarshallAware in interface org.apache.activemq.command.DataStructure
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • 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