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 Details

  • Constructor Details

    • StatusObject

      public StatusObject()
      Constructs a new StatusObject.
    • StatusObject

      public StatusObject(String code, String level)
    • StatusObject

      public StatusObject(String code, String level, String description)
  • Method Details

    • getCode

      public String getCode()
      Getter for property 'code'.
      Returns:
      Value for property 'code'.
    • setCode

      public void setCode(String code)
      Setter for property 'code'.
      Parameters:
      code - Value to set for property 'code'.
    • getDescription

      public String getDescription()
      Getter for property 'description'.
      Returns:
      Value for property 'description'.
    • setDescription

      public void setDescription(String description)
      Setter for property 'description'.
      Parameters:
      description - Value to set for property 'description'.
    • getLevel

      public String getLevel()
      Getter for property 'level'.
      Returns:
      Value for property 'level'.
    • setLevel

      public void setLevel(String level)
      Setter for property 'level'.
      Parameters:
      level - Value to set for property 'level'.
    • setApplication

      public void setApplication(Object application)
      Setter for property 'application'.
      Parameters:
      application - Value to set for property 'application'.
    • getApplication

      public Object getApplication()
      Getter for property 'application'.
      Returns:
      Value for property 'application'.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • asStatus

      public Status asStatus()
      Generate Status object that can be returned through a RTMP channel.
      Returns:
      status
    • setAdditional

      public void setAdditional(String name, Object value)
    • serialize

      public void serialize(Output output)
      Description copied from interface: ICustomSerializable
      Serialize this object to the given output stream.
      Specified by:
      serialize in interface ICustomSerializable
      Parameters:
      output - output
    • readExternal

      public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
      Specified by:
      readExternal in interface Externalizable
      Throws:
      IOException
      ClassNotFoundException
    • writeExternal

      public void writeExternal(ObjectOutput out) throws IOException
      Specified by:
      writeExternal in interface Externalizable
      Throws:
      IOException