Package org.red5.server.net.rtmp.status
Class StatusObject
java.lang.Object
org.red5.server.net.rtmp.status.StatusObject
- All Implemented Interfaces:
Externalizable
,Serializable
,ICustomSerializable
- Direct Known Subclasses:
RuntimeStatusObject
public class StatusObject
extends Object
implements Serializable, ICustomSerializable, Externalizable
Status object that is sent to client with every status event
- Author:
- The Red5 Project, Luke Hubbard, Codegent Ltd (luke@codegent.com)
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructs a new StatusObject.StatusObject
(String code, String level) StatusObject
(String code, String level, String description) -
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
void
Serialize this object to the given output stream.void
setAdditional
(String name, Object value) 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
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
ERROR
- See Also:
-
STATUS
- See Also:
-
WARNING
- See Also:
-
code
-
level
-
description
-
application
-
additional
-
-
Constructor Details
-
StatusObject
public StatusObject()Constructs a new StatusObject. -
StatusObject
-
StatusObject
-
-
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'.
-
toString
-
asStatus
Generate Status object that can be returned through a RTMP channel.- Returns:
- status
-
setAdditional
-
serialize
Description copied from interface:ICustomSerializable
Serialize this object to the given output stream.- Specified by:
serialize
in interfaceICustomSerializable
- Parameters:
output
- output
-
readExternal
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-