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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
getBooleanProperty
(String name) Getter for boolean propertybyte
getByteProperty
(String name) Add byte property to messageReturn correlation iddouble
getDoubleProperty
(String name) Return double property by namefloat
getFloatProperty
(String name) Return float property by nameint
getIntProperty
(String name) Return int property by namelong
getLongProperty
(String name) Return long property to messageReturn message idReturn message typegetObjectProperty
(String name) Return object property to messageshort
getShortProperty
(String name) Return short property to messagegetStringProperty
(String name) Return string property to messagevoid
setBooleanProperty
(String name, boolean value) Add boolean property to messagevoid
setByteProperty
(String name, byte value) Add byte property to messagevoid
Setter for correlation idvoid
setDoubleProperty
(String name, double value) Add double property to messagevoid
setFloatProperty
(String name, float value) Add float property to messagevoid
setIntProperty
(String name, int value) Add int property to messagevoid
setLongProperty
(String name, long value) Add long property to messagevoid
setMessageID
(String id) Setter for new message idvoid
setMessageType
(String type) Setter for message typevoid
setObjectProperty
(String name, Object value) Add object property to messagevoid
setShortProperty
(String name, short value) Add short property to messagevoid
setStringProperty
(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:
getMessageID
in interfaceIMessage
- Returns:
- Message id
-
setMessageID
Setter for new message id- Specified by:
setMessageID
in interfaceIMessage
- Parameters:
id
- Message id
-
getCorrelationID
Return correlation id- Specified by:
getCorrelationID
in interfaceIMessage
- Returns:
- Correlation id
-
setCorrelationID
Setter for correlation id- Specified by:
setCorrelationID
in interfaceIMessage
- Parameters:
id
- Correlation id
-
getMessageType
Return message type- Specified by:
getMessageType
in interfaceIMessage
- Returns:
- Message type
-
setMessageType
Setter for message type- Specified by:
setMessageType
in interfaceIMessage
- Parameters:
type
- Message type
-
getBooleanProperty
Getter for boolean property- Specified by:
getBooleanProperty
in interfaceIMessage
- Parameters:
name
- Boolean property name- Returns:
- Boolean property
-
setBooleanProperty
Add boolean property to message- Specified by:
setBooleanProperty
in interfaceIMessage
- Parameters:
name
- Boolean property namevalue
- Boolean property value
-
getByteProperty
Add byte property to message- Specified by:
getByteProperty
in interfaceIMessage
- Parameters:
name
- Byte property name- Returns:
- Byte property value
-
setByteProperty
Add byte property to message- Specified by:
setByteProperty
in interfaceIMessage
- Parameters:
name
- Byte property namevalue
- Byte property value
-
getDoubleProperty
Return double property by name- Specified by:
getDoubleProperty
in interfaceIMessage
- Parameters:
name
- Double property name- Returns:
- Double property value
-
setDoubleProperty
Add double property to message- Specified by:
setDoubleProperty
in interfaceIMessage
- Parameters:
name
- Double property namevalue
- Double property value
-
getFloatProperty
Return float property by name- Specified by:
getFloatProperty
in interfaceIMessage
- Parameters:
name
- Float property name- Returns:
- Float property value
-
setFloatProperty
Add float property to message- Specified by:
setFloatProperty
in interfaceIMessage
- Parameters:
name
- Float property namevalue
- Float property value
-
getIntProperty
Return int property by name- Specified by:
getIntProperty
in interfaceIMessage
- Parameters:
name
- Int property name- Returns:
- Int property value
-
setIntProperty
Add int property to message- Specified by:
setIntProperty
in interfaceIMessage
- Parameters:
name
- Int property namevalue
- Int property value
-
getLongProperty
Return long property to message- Specified by:
getLongProperty
in interfaceIMessage
- Parameters:
name
- Long property name- Returns:
- Long property value
-
setLongProperty
Add long property to message- Specified by:
setLongProperty
in interfaceIMessage
- Parameters:
name
- Long property namevalue
- Long property value
-
getShortProperty
Return short property to message- Specified by:
getShortProperty
in interfaceIMessage
- Parameters:
name
- Short property name- Returns:
- Short property value
-
setShortProperty
Add short property to message- Specified by:
setShortProperty
in interfaceIMessage
- Parameters:
name
- Short property namevalue
- Short property value
-
getStringProperty
Return string property to message- Specified by:
getStringProperty
in interfaceIMessage
- Parameters:
name
- String property name- Returns:
- String property value
-
setStringProperty
Add string property to message- Specified by:
setStringProperty
in interfaceIMessage
- Parameters:
name
- String property namevalue
- String property value
-
getObjectProperty
Return object property to message- Specified by:
getObjectProperty
in interfaceIMessage
- Parameters:
name
- Object property name- Returns:
- Object property value
-
setObjectProperty
Add object property to message- Specified by:
setObjectProperty
in interfaceIMessage
- Parameters:
name
- Object property namevalue
- Object property value
-