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 ([email protected])
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructs 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'.voidvoidSerialize this object to the given output stream.voidsetAdditional(String name, Object value) voidsetApplication(Object application) Setter for property 'application'.voidSetter for property 'code'.voidsetDescription(String description) Setter for property 'description'.voidSetter 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:ICustomSerializableSerialize this object to the given output stream.- Specified by:
serializein interfaceICustomSerializable- Parameters:
output- output
-
readExternal
- Specified by:
readExternalin interfaceExternalizable- Throws:
IOExceptionClassNotFoundException
-
writeExternal
- Specified by:
writeExternalin interfaceExternalizable- Throws:
IOException
-