public class StatusObject extends Object implements Serializable, ICustomSerializable, Externalizable
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
additional |
protected Object |
application |
protected String |
code |
protected String |
description |
static String |
ERROR |
protected String |
level |
static String |
STATUS |
static String |
WARNING |
Constructor and Description |
---|
StatusObject()
Constructs a new StatusObject.
|
StatusObject(String code,
String level,
String description) |
Modifier and Type | Method and Description |
---|---|
Status |
asStatus()
Generate Status object that can be returned through a RTMP channel.
|
Object |
getApplication()
Getter for property 'application'.
|
String |
getCode()
Getter for property 'code'.
|
String |
getDescription()
Getter for property 'description'.
|
String |
getLevel()
Getter for property 'level'.
|
void |
readExternal(ObjectInput in) |
void |
serialize(Output output,
Serializer serializer)
Serialize this object to the given output stream.
|
void |
setAdditional(String name,
Object value) |
void |
setApplication(Object application)
Setter for property 'application'.
|
void |
setCode(String code)
Setter for property 'code'.
|
void |
setDescription(String description)
Setter for property 'description'.
|
void |
setLevel(String level)
Setter for property 'level'.
|
String |
toString() |
void |
writeExternal(ObjectOutput out) |
public static final String ERROR
public static final String STATUS
public static final String WARNING
protected String code
protected String level
protected String description
protected Object application
public String getCode()
public void setCode(String code)
code
- Value to set for property 'code'.public String getDescription()
public void setDescription(String description)
description
- Value to set for property 'description'.public String getLevel()
public void setLevel(String level)
level
- Value to set for property 'level'.public void setApplication(Object application)
application
- Value to set for property 'application'.public Object getApplication()
public Status asStatus()
public void serialize(Output output, Serializer serializer)
ICustomSerializable
serialize
in interface ICustomSerializable
output
- outputserializer
- serializerpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal
in interface Externalizable
IOException
ClassNotFoundException
public void writeExternal(ObjectOutput out) throws IOException
writeExternal
in interface Externalizable
IOException
Copyright © 2006-2012 The Red5 Project