|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.cipango.diameter.DiameterCommand
public class DiameterCommand
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 |
---|
public DiameterCommand(boolean request, int code, java.lang.String name, boolean proxiable)
public DiameterCommand(boolean request, int code, java.lang.String name)
Method Detail |
---|
public boolean isRequest()
true
if this code applies for a request. Use
Used for the 'R' bit in the Command Flags.
true
if this code applies for a request.public java.lang.Integer getCode()
public boolean isProxiable()
true
if the message is proxiable.
Used for the 'P' bit in the Command Flags.
true
if the message is proxiable.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |