public class StatusObject extends Object implements Serializable, org.red5.io.object.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) |
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(org.red5.io.object.Output output) |
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(org.red5.io.object.Output output)
serialize in interface org.red5.io.object.ICustomSerializablepublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizableIOExceptionClassNotFoundExceptionpublic void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizableIOExceptionCopyright © 2005–2017 Red5. All rights reserved.