Class StompWireFormat

java.lang.Object
org.apache.activemq.transport.stomp.StompWireFormat
All Implemented Interfaces:
org.apache.activemq.wireformat.WireFormat

public class StompWireFormat extends Object implements org.apache.activemq.wireformat.WireFormat
Implements marshalling and unmarsalling the Stomp protocol.
  • Field Details

  • Constructor Details

    • StompWireFormat

      public StompWireFormat()
  • Method Details

    • marshal

      public ByteSequence marshal(Object command) throws IOException
      Specified by:
      marshal in interface org.apache.activemq.wireformat.WireFormat
      Throws:
      IOException
    • unmarshal

      public Object unmarshal(ByteSequence packet) throws IOException
      Specified by:
      unmarshal in interface org.apache.activemq.wireformat.WireFormat
      Throws:
      IOException
    • marshal

      public void marshal(Object command, DataOutput os) throws IOException
      Specified by:
      marshal in interface org.apache.activemq.wireformat.WireFormat
      Throws:
      IOException
    • marshalToString

      public String marshalToString(StompFrame stomp) throws IOException
      Throws:
      IOException
    • unmarshal

      public Object unmarshal(DataInput in) throws IOException
      Specified by:
      unmarshal in interface org.apache.activemq.wireformat.WireFormat
      Throws:
      IOException
    • parseAction

      protected String parseAction(DataInput in, AtomicLong frameSize) throws IOException
      Throws:
      IOException
    • parseHeaders

      protected HashMap<String,String> parseHeaders(DataInput in, AtomicLong frameSize) throws IOException
      Throws:
      IOException
    • parseContentLength

      protected int parseContentLength(String contentLength, AtomicLong frameSize) throws ProtocolException
      Throws:
      ProtocolException
    • getVersion

      public int getVersion()
      Specified by:
      getVersion in interface org.apache.activemq.wireformat.WireFormat
    • setVersion

      public void setVersion(int version)
      Specified by:
      setVersion in interface org.apache.activemq.wireformat.WireFormat
    • getStompVersion

      public String getStompVersion()
    • setStompVersion

      public void setStompVersion(String stompVersion)
    • setMaxDataLength

      public void setMaxDataLength(int maxDataLength)
    • getMaxDataLength

      public int getMaxDataLength()
    • getMaxFrameSize

      public long getMaxFrameSize()
    • setMaxFrameSize

      public void setMaxFrameSize(long maxFrameSize)
    • getConnectionAttemptTimeout

      public long getConnectionAttemptTimeout()
    • setConnectionAttemptTimeout

      public void setConnectionAttemptTimeout(long connectionAttemptTimeout)