public class DiameterCommand extends Object
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 and Description |
|---|
DiameterCommand(boolean request,
int code,
String name) |
DiameterCommand(boolean request,
int code,
String name,
boolean proxiable) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
Integer |
getCode()
Returns the command code.
|
int |
hashCode() |
boolean |
isProxiable()
Returns
true if the message is proxiable. |
boolean |
isRequest()
Returns
true if this code applies for a request. |
String |
toString() |
public DiameterCommand(boolean request,
int code,
String name,
boolean proxiable)
public DiameterCommand(boolean request,
int code,
String name)
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 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.Copyright © 2014. All Rights Reserved.