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 booleanstatic final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionlongintlongintbooleanorg.apache.activemq.util.ByteSequencevoidmarshal(Object command, DataOutput os) marshalToString(StompFrame stomp) voidsetConnectionAttemptTimeout(long connectionAttemptTimeout) voidsetMaxDataLength(int maxDataLength) voidsetMaxFrameSize(long maxFrameSize) voidsetServerMode(boolean serverMode) voidsetStompVersion(String stompVersion) voidsetVersion(int version) unmarshal(org.apache.activemq.util.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:
-
DEFAULT_SERVER_MODE
public static final boolean DEFAULT_SERVER_MODE- 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
-
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) -
isServerMode
public boolean isServerMode() -
setServerMode
public void setServerMode(boolean serverMode)
-