org.cipango.diameter
Class DiameterCommand

java.lang.Object
  extended by org.cipango.diameter.DiameterCommand

public class DiameterCommand
extends java.lang.Object

Definition of command code.
Each command Request/Answer pair is assigned a command code, and the sub-type (i.e., request or answer) is identified via the 'R' bit in the Command Flags field of the Diameter header.

Every Diameter message MUST contain a command code in its header's Command-Code field, which is used to determine the action that is to be taken for a particular message.

IETF command codes are defined in Common.
3GPP command codes are defined in Cx, Sh, Zh.


Constructor Summary
DiameterCommand(boolean request, int code, java.lang.String name)
           
DiameterCommand(boolean request, int code, java.lang.String name, boolean proxiable)
           
 
Method Summary
 java.lang.Integer getCode()
          Returns the command code.
 boolean isProxiable()
          Returns true if the message is proxiable.
 boolean isRequest()
          Returns true if this code applies for a request.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DiameterCommand

public DiameterCommand(boolean request,
                       int code,
                       java.lang.String name,
                       boolean proxiable)

DiameterCommand

public DiameterCommand(boolean request,
                       int code,
                       java.lang.String name)
Method Detail

isRequest

public boolean isRequest()
Returns true if this code applies for a request. Use Used for the 'R' bit in the Command Flags.

Returns:
true if this code applies for a request.

getCode

public java.lang.Integer getCode()
Returns the command code.

Returns:
the command code.

isProxiable

public boolean isProxiable()
Returns true if the message is proxiable. Used for the 'P' bit in the Command Flags.

Returns:
true if the message is proxiable.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.