Package org.red5.server.net.rtmp.status
Class StatusObject
java.lang.Object
org.red5.server.net.rtmp.status.StatusObject
- All Implemented Interfaces:
IExternalizable
- Direct Known Subclasses:
RuntimeStatusObject
Status object that is sent to client with every status event
- Author:
- The Red5 Project, Luke Hubbard, Codegent Ltd (luke@codegent.com)
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new StatusObject.StatusObject
(String code, String level) Constructor for StatusObject.StatusObject
(String code, String level, String description) Constructor for StatusObject. -
Method Summary
Modifier and TypeMethodDescriptionasStatus()
Generate Status object that can be returned through a RTMP channel.Getter for property 'application'.getCode()
Getter for property 'code'.Getter for property 'description'.getLevel()
Getter for property 'level'.void
Load custom object from stream.void
setAdditional
(String name, Object value) Setter for the fieldadditional
.void
setApplication
(Object application) Setter for property 'application'.void
Setter for property 'code'.void
setDescription
(String description) Setter for property 'description'.void
Setter for property 'level'.toString()
void
writeExternal
(IDataOutput out) Store custom object to stream.
-
Field Details
-
ERROR
ConstantWARNING="warning"
- See Also:
-
STATUS
ConstantWARNING="warning"
- See Also:
-
WARNING
ConstantWARNING="warning"
- See Also:
-
code
-
level
-
description
-
application
-
additional
-
-
Constructor Details
-
Method Details
-
getCode
Getter for property 'code'.- Returns:
- Value for property 'code'.
-
setCode
Setter for property 'code'.- Parameters:
code
- Value to set for property 'code'.
-
getDescription
Getter for property 'description'.- Returns:
- Value for property 'description'.
-
setDescription
Setter for property 'description'.- Parameters:
description
- Value to set for property 'description'.
-
getLevel
Getter for property 'level'.- Returns:
- Value for property 'level'.
-
setLevel
Setter for property 'level'.- Parameters:
level
- Value to set for property 'level'.
-
setApplication
Setter for property 'application'.- Parameters:
application
- Value to set for property 'application'.
-
getApplication
Getter for property 'application'.- Returns:
- Value for property 'application'.
-
setAdditional
Setter for the field
additional
. -
asStatus
Generate Status object that can be returned through a RTMP channel.- Returns:
- status
-
toString
-
readExternal
Load custom object from stream.- Specified by:
readExternal
in interfaceIExternalizable
- Parameters:
in
- object to be used for data loading
-
writeExternal
Store custom object to stream.- Specified by:
writeExternal
in interfaceIExternalizable
- Parameters:
out
- object to be used for data storing
-