org.mobicents.media.server.mgcp.message
Class MgcpRequest

java.lang.Object
  extended by org.mobicents.media.server.mgcp.message.MgcpMessage
      extended by org.mobicents.media.server.mgcp.message.MgcpRequest

public class MgcpRequest
extends MgcpMessage

Implements MGCP request message.

Author:
kulikov

Field Summary
 
Fields inherited from class org.mobicents.media.server.mgcp.message.MgcpMessage
AUDIT_CONNECTION, AUDIT_ENDPOINT, CREATE_CONNECTION, DELETE_CONNECTION, MODIFY_CONNECTION, NOTIFY, REQUEST_NOTIFICATION
 
Constructor Summary
MgcpRequest()
           
 
Method Summary
 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)
           
 
Methods inherited from class org.mobicents.media.server.mgcp.message.MgcpMessage
getType, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MgcpRequest

public MgcpRequest()
Method Detail

getCommand

public Text getCommand()
Get the command carried by the message.

Returns:

setCommand

public void setCommand(Text command)
Assign command for this message.

Parameters:
command - the command identifier.

getEndpoint

public Text getEndpoint()
Get endpoint parameter of the request.

Returns:
the fully qualified name of the endpoint.

setEndpoint

public void setEndpoint(Text endpointID)
Assign endpoint identifier.

Parameters:
endpointID - the fully qualified name of the endpoint.

getTxID

public int getTxID()
Gets the transaction identifier.

Specified by:
getTxID in class MgcpMessage
Returns:
the integer transaction number.

setTxID

public void setTxID(int txID)
Assigns transaction identifier.

Parameters:
txID - transaction identifier.

getParameter

public Parameter getParameter(Text key)
Gets the requested parameter.

Parameters:
key - the key identifier of the parameter
Returns:

setParameter

public void setParameter(Text key,
                         Text value)
Assigns parameter.

Parameters:
p - the parameter.

strain

public void strain(byte[] buff,
                   int offset,
                   int len)

parse

protected void parse(byte[] buff,
                     int offset,
                     int len)
Specified by:
parse in class MgcpMessage

write

public void write(ByteBuffer buffer)
Overrides:
write in class MgcpMessage

clean

public void clean()
Clean parameters.

Specified by:
clean in class MgcpMessage

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 TeleStax, Inc.. All Rights Reserved.