Class StompWireFormat
java.lang.Object
org.apache.activemq.transport.stomp.StompWireFormat
- All Implemented Interfaces:
org.apache.activemq.wireformat.WireFormat
Implements marshalling and unmarsalling the Stomp protocol.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final longstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongintlongintvoidmarshal(Object command, DataOutput os) marshalToString(StompFrame stomp) protected StringparseAction(DataInput in, AtomicLong frameSize) protected intparseContentLength(String contentLength, AtomicLong frameSize) parseHeaders(DataInput in, AtomicLong frameSize) voidsetConnectionAttemptTimeout(long connectionAttemptTimeout) voidsetMaxDataLength(int maxDataLength) voidsetMaxFrameSize(long maxFrameSize) voidsetStompVersion(String stompVersion) voidsetVersion(int version) unmarshal(ByteSequence packet)
-
Field Details
-
MAX_DATA_LENGTH
public static final int MAX_DATA_LENGTH- See Also:
-
DEFAULT_MAX_FRAME_SIZE
public static final long DEFAULT_MAX_FRAME_SIZE- See Also:
-
DEFAULT_CONNECTION_TIMEOUT
public static final long DEFAULT_CONNECTION_TIMEOUT- See Also:
-
-
Constructor Details
-
StompWireFormat
public StompWireFormat()
-
-
Method Details
-
marshal
- Specified by:
marshalin interfaceorg.apache.activemq.wireformat.WireFormat- Throws:
IOException
-
unmarshal
- Specified by:
unmarshalin interfaceorg.apache.activemq.wireformat.WireFormat- Throws:
IOException
-
marshal
- Specified by:
marshalin interfaceorg.apache.activemq.wireformat.WireFormat- Throws:
IOException
-
marshalToString
- Throws:
IOException
-
unmarshal
- Specified by:
unmarshalin interfaceorg.apache.activemq.wireformat.WireFormat- Throws:
IOException
-
parseAction
- 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:
getVersionin interfaceorg.apache.activemq.wireformat.WireFormat
-
setVersion
public void setVersion(int version) - Specified by:
setVersionin interfaceorg.apache.activemq.wireformat.WireFormat
-
getStompVersion
-
setStompVersion
-
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)
-