Package org.red5.server.messaging
Class AbstractMessage
java.lang.Object
org.red5.server.messaging.AbstractMessage
- All Implemented Interfaces:
IMessage
- Direct Known Subclasses:
ResetMessage,RTMPMessage,StatusMessage
Abstract base for all messages
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBooleanProperty(String name) Getter for boolean propertybytegetByteProperty(String name) Add byte property to messageReturn correlation iddoublegetDoubleProperty(String name) Return double property by namefloatgetFloatProperty(String name) Return float property by nameintgetIntProperty(String name) Return int property by namelonggetLongProperty(String name) Return long property to messageReturn message idReturn message typegetObjectProperty(String name) Return object property to messageshortgetShortProperty(String name) Return short property to messagegetStringProperty(String name) Return string property to messagevoidsetBooleanProperty(String name, boolean value) Add boolean property to messagevoidsetByteProperty(String name, byte value) Add byte property to messagevoidSetter for correlation idvoidsetDoubleProperty(String name, double value) Add double property to messagevoidsetFloatProperty(String name, float value) Add float property to messagevoidsetIntProperty(String name, int value) Add int property to messagevoidsetLongProperty(String name, long value) Add long property to messagevoidsetMessageID(String id) Setter for new message idvoidsetMessageType(String type) Setter for message typevoidsetObjectProperty(String name, Object value) Add object property to messagevoidsetShortProperty(String name, short value) Add short property to messagevoidsetStringProperty(String name, String value) Add string property to message
-
Field Details
-
messageID
-
correlationID
-
messageType
-
extraHeaders
-
-
Constructor Details
-
AbstractMessage
public AbstractMessage()
-
-
Method Details
-
getMessageID
Return message id- Specified by:
getMessageIDin interfaceIMessage- Returns:
- Message id
-
setMessageID
Setter for new message id- Specified by:
setMessageIDin interfaceIMessage- Parameters:
id- Message id
-
getCorrelationID
Return correlation id- Specified by:
getCorrelationIDin interfaceIMessage- Returns:
- Correlation id
-
setCorrelationID
Setter for correlation id- Specified by:
setCorrelationIDin interfaceIMessage- Parameters:
id- Correlation id
-
getMessageType
Return message type- Specified by:
getMessageTypein interfaceIMessage- Returns:
- Message type
-
setMessageType
Setter for message type- Specified by:
setMessageTypein interfaceIMessage- Parameters:
type- Message type
-
getBooleanProperty
Getter for boolean property- Specified by:
getBooleanPropertyin interfaceIMessage- Parameters:
name- Boolean property name- Returns:
- Boolean property
-
setBooleanProperty
Add boolean property to message- Specified by:
setBooleanPropertyin interfaceIMessage- Parameters:
name- Boolean property namevalue- Boolean property value
-
getByteProperty
Add byte property to message- Specified by:
getBytePropertyin interfaceIMessage- Parameters:
name- Byte property name- Returns:
- Byte property value
-
setByteProperty
Add byte property to message- Specified by:
setBytePropertyin interfaceIMessage- Parameters:
name- Byte property namevalue- Byte property value
-
getDoubleProperty
Return double property by name- Specified by:
getDoublePropertyin interfaceIMessage- Parameters:
name- Double property name- Returns:
- Double property value
-
setDoubleProperty
Add double property to message- Specified by:
setDoublePropertyin interfaceIMessage- Parameters:
name- Double property namevalue- Double property value
-
getFloatProperty
Return float property by name- Specified by:
getFloatPropertyin interfaceIMessage- Parameters:
name- Float property name- Returns:
- Float property value
-
setFloatProperty
Add float property to message- Specified by:
setFloatPropertyin interfaceIMessage- Parameters:
name- Float property namevalue- Float property value
-
getIntProperty
Return int property by name- Specified by:
getIntPropertyin interfaceIMessage- Parameters:
name- Int property name- Returns:
- Int property value
-
setIntProperty
Add int property to message- Specified by:
setIntPropertyin interfaceIMessage- Parameters:
name- Int property namevalue- Int property value
-
getLongProperty
Return long property to message- Specified by:
getLongPropertyin interfaceIMessage- Parameters:
name- Long property name- Returns:
- Long property value
-
setLongProperty
Add long property to message- Specified by:
setLongPropertyin interfaceIMessage- Parameters:
name- Long property namevalue- Long property value
-
getShortProperty
Return short property to message- Specified by:
getShortPropertyin interfaceIMessage- Parameters:
name- Short property name- Returns:
- Short property value
-
setShortProperty
Add short property to message- Specified by:
setShortPropertyin interfaceIMessage- Parameters:
name- Short property namevalue- Short property value
-
getStringProperty
Return string property to message- Specified by:
getStringPropertyin interfaceIMessage- Parameters:
name- String property name- Returns:
- String property value
-
setStringProperty
Add string property to message- Specified by:
setStringPropertyin interfaceIMessage- Parameters:
name- String property namevalue- String property value
-
getObjectProperty
Return object property to message- Specified by:
getObjectPropertyin interfaceIMessage- Parameters:
name- Object property name- Returns:
- Object property value
-
setObjectProperty
Add object property to message- Specified by:
setObjectPropertyin interfaceIMessage- Parameters:
name- Object property namevalue- Object property value
-