public class MgcpRequest extends MgcpMessage
AUDIT_CONNECTION, AUDIT_ENDPOINT, CREATE_CONNECTION, DELETE_CONNECTION, MODIFY_CONNECTION, NOTIFY, REQUEST_NOTIFICATION| Constructor and Description |
|---|
MgcpRequest() |
| Modifier and Type | Method and Description |
|---|---|
void |
clean()
Clean parameters.
|
Text |
getCommand()
Get the command carried by the message.
|
Text |
getEndpoint()
Get endpoint parameter of the request.
|
Parameter |
getParameter(Text key)
Gets the requested parameter.
|
int |
getTxID()
Gets the transaction identifier.
|
protected void |
parse(byte[] buff,
int offset,
int len) |
void |
setCommand(Text command)
Assign command for this message.
|
void |
setEndpoint(Text endpointID)
Assign endpoint identifier.
|
void |
setParameter(Text key,
Text value)
Assigns parameter.
|
void |
setTxID(int txID)
Assigns transaction identifier.
|
void |
strain(byte[] buff,
int offset,
int len) |
String |
toString() |
void |
write(ByteBuffer buffer) |
getType, readpublic Text getCommand()
public void setCommand(Text command)
command - the command identifier.public Text getEndpoint()
public void setEndpoint(Text endpointID)
endpointID - the fully qualified name of the endpoint.public int getTxID()
getTxID in class MgcpMessagepublic void setTxID(int txID)
txID - transaction identifier.public Parameter getParameter(Text key)
key - the key identifier of the parameterpublic void setParameter(Text key, Text value)
p - the parameter.public void strain(byte[] buff,
int offset,
int len)
protected void parse(byte[] buff,
int offset,
int len)
parse in class MgcpMessagepublic void write(ByteBuffer buffer)
write in class MgcpMessagepublic void clean()
clean in class MgcpMessageCopyright © 2014 TeleStax, Inc.. All Rights Reserved.