org.red5.server.net.rtmp.status
public class Status extends Object implements StatusCodes, ICustomSerializable, Externalizable
Modifier and Type | Field and Description |
---|---|
protected int |
clientid
Id of client
|
protected String |
code
Status code
|
protected String |
description
Status event description
|
protected String |
details
Status event details
|
static String |
ERROR
Error constant
|
protected String |
level
Status level
|
static String |
STATUS
Status constant
|
static String |
WARNING
Warning constant
|
APP_GC, APP_RESOURCE_LOWMEMORY, APP_SCRIPT_ERROR, APP_SCRIPT_WARNING, APP_SHUTDOWN, NC_CALL_BADVERSION, NC_CALL_FAILED, NC_CONNECT_APPSHUTDOWN, NC_CONNECT_CLOSED, NC_CONNECT_FAILED, NC_CONNECT_INVALID_APPLICATION, NC_CONNECT_REJECTED, NC_CONNECT_SUCCESS, NS_BUFFER_EMPTY, NS_CLEAR_FAILED, NS_CLEAR_SUCCESS, NS_DATA_START, NS_FAILED, NS_INVALID_ARGUMENT, NS_PAUSE_NOTIFY, NS_PLAY_COMPLETE, NS_PLAY_FAILED, NS_PLAY_FILE_STRUCTURE_INVALID, NS_PLAY_INSUFFICIENT_BW, NS_PLAY_NO_SUPPORTED_TRACK_FOUND, NS_PLAY_PUBLISHNOTIFY, NS_PLAY_RESET, NS_PLAY_START, NS_PLAY_STOP, NS_PLAY_STREAMNOTFOUND, NS_PLAY_SWITCH, NS_PLAY_TRANSITION, NS_PLAY_TRANSITION_COMPLETE, NS_PLAY_UNPUBLISHNOTIFY, NS_PUBLISH_BADNAME, NS_PUBLISH_START, NS_RECORD_FAILED, NS_RECORD_NOACCESS, NS_RECORD_START, NS_RECORD_STOP, NS_SEEK_FAILED, NS_SEEK_NOTIFY, NS_TRANSITION_FORCED, NS_TRANSITION_SUCCESS, NS_UNPAUSE_NOTIFY, NS_UNPUBLISHED_SUCCESS, SO_CREATION_FAILED, SO_NO_READ_ACCESS, SO_NO_WRITE_ACCESS, SO_PERSISTENCE_MISMATCH
Constructor and Description |
---|
Status()
Constructs a new Status.
|
Status(String code)
Creates status object with given status code
|
Status(String code,
String level,
String description)
Creates status object with given level, description and status code
|
Modifier and Type | Method and Description |
---|---|
int |
getClientid()
Getter for client id
|
String |
getCode()
Getter for status code.
|
String |
getDescription()
Getter for description.
|
String |
getDetails()
Getter for details
|
String |
getLevel()
Getter for level.
|
void |
readExternal(ObjectInput in) |
void |
serialize(Output output,
Serializer serializer)
Serialize this object to the given output stream.
|
void |
setClientid(int clientid)
Setter for client id
|
void |
setCode(String code)
Setter for code
|
void |
setDesciption(String description)
Setter for desciption.
|
void |
setDescription(String description)
Setter for description.
|
void |
setDetails(String details)
Setter for details.
|
void |
setLevel(String level)
Setter for 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 String details
protected int clientid
public Status()
public Status(String code)
code
- Status codepublic String getCode()
public void setCode(String code)
code
- Status codepublic String getDescription()
public void setDesciption(String description)
description
- Status event description.public String getLevel()
public void setLevel(String level)
level
- Levelpublic int getClientid()
public void setClientid(int clientid)
clientid
- Client idpublic String getDetails()
public void setDetails(String details)
details
- Status event detailspublic void setDescription(String description)
description
- Status event descriptionpublic 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