Package com.bea.wcp.diameter
Class Command
java.lang.Object
com.bea.wcp.diameter.Command
Diameter command information.
- Author:
- Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final CommandAccounting-Answer (ACA.)static final CommandAccounting-Request (ACR).static final CommandAbort-Session-Answer (ASA).static final CommandAbort-Session-Request (ASR).static final CommandCapabilities-Exchange-Answer (CEA).static final CommandCapabilities-Exchange-Request (CER).static final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final CommandDisconnect-Peer-Answer (DPA).static final CommandDisconnect-Peer-Request (DPR).static final CommandDevice-Watchdog-Answer (DWA).static final CommandDevice-Watchdog-Request (DWR).static final CommandRe-Auth-Answer (RAA).static final CommandRe-Auth-Request (RAR).static final CommandSession-Termination-Answer (STA).static final CommandSession-Termination-Request (STR). -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandDefines a new Command which is proxiable and uses the default message factory.static CommandDefines a new Command with default message factory.static Commanddefine(int code, int appId, String name, boolean isRequest, boolean isProxiable, MessageFactory factory) Defines a new Command.static CommandDeprecated.static CommandDeprecated.Use the method with appId insteadstatic Commanddefine(int code, String name, boolean isRequest, boolean isProxiable, MessageFactory factory) Deprecated.Use the method with appId insteadstatic CommandgetAnsByCode(int code) Deprecated.Use the method with appId instead(getAnsByCode(int code, int appId))static CommandgetAnsByCode(int code, int appId) Returns the Command for the specified answer command code, or null if not found.intgetAppId()Returns the Application Identifier.static CommandReturns the Command for the specified command name, or null if not found.intgetCode()Returns the command code.Returns the MessageFactory for this command, or null if none.getName()Returns the command name.static CommandgetReqByCode(int code) Deprecated.Use the method with appId instead(getReqByCode(int code, int appId))static CommandgetReqByCode(int code, int appId) Returns the Command for the specified request command code, or null if not found.booleanReturns true if this command is proxiable.booleanReturns true if this is a request command, or false if this is an answer.toString()
-
Field Details
-
CODE_CE
public static final int CODE_CE- See Also:
-
CODE_DW
public static final int CODE_DW- See Also:
-
CODE_DP
public static final int CODE_DP- See Also:
-
CODE_AC
public static final int CODE_AC- See Also:
-
CODE_RA
public static final int CODE_RA- See Also:
-
CODE_ST
public static final int CODE_ST- See Also:
-
CODE_AS
public static final int CODE_AS- See Also:
-
CODE_CC
public static final int CODE_CC- See Also:
-
CODE_AA
public static final int CODE_AA- See Also:
-
ASR
Abort-Session-Request (ASR). -
ASA
Abort-Session-Answer (ASA). -
ACR
Accounting-Request (ACR). -
ACA
Accounting-Answer (ACA.) -
CER
Capabilities-Exchange-Request (CER). -
CEA
Capabilities-Exchange-Answer (CEA). -
DWR
Device-Watchdog-Request (DWR). -
DWA
Device-Watchdog-Answer (DWA). -
DPR
Disconnect-Peer-Request (DPR). -
DPA
Disconnect-Peer-Answer (DPA). -
RAR
Re-Auth-Request (RAR). -
RAA
Re-Auth-Answer (RAA). -
STR
Session-Termination-Request (STR). -
STA
Session-Termination-Answer (STA).
-
-
Method Details
-
define
public static Command define(int code, int appId, String name, boolean isRequest, boolean isProxiable, MessageFactory factory) Defines a new Command. The Command will be added to the registry of known commands.- Parameters:
code- the command codeappId- the Application-Idname- the command nameisRequest- if true then is request, otherwise is answerisProxiable- if true then is proxiablefactory- optional message factory for command
-
define
@Deprecated public static Command define(int code, String name, boolean isRequest, boolean isProxiable, MessageFactory factory) Deprecated.Use the method with appId insteadDefines a new Command. This method is kept for backward compatibility- Parameters:
code- Command Codename- Command NameisRequest- true for Request and false for AnswerisProxiable- if true then is proxiablefactory- optional message factory for command- Returns:
- Command
-
define
public static Command define(int code, int appId, String name, boolean isRequest, boolean isProxiable) Defines a new Command with default message factory.- Parameters:
code- the command codeappId- the Application-Idname- the command nameisRequest- if true then is request, otherwise is answerisProxiable- if true then is proxiable
-
define
@Deprecated public static Command define(int code, String name, boolean isRequest, boolean isProxiable) Deprecated.Use the method with appId insteadDefines a new Command with default message factory.- Parameters:
code- the command codeappId- the Application-Idname- the command nameisRequest- if true then is request, otherwise is answerisProxiable- if true then is proxiable
-
define
Defines a new Command which is proxiable and uses the default message factory.- Parameters:
code- the command codeappId- the Application-Idname- the command nameisRequest- if true then is proxiable
-
define
Deprecated.Defines a new Command which is proxiable and uses the default message factory.- Parameters:
code- the command codename- the command nameisRequest- if true then is proxiable
-
getReqByCode
Returns the Command for the specified request command code, or null if not found. -
getReqByCode
Deprecated.Use the method with appId instead(getReqByCode(int code, int appId))Returns the Command for the specified request command code, or null if not found. -
getAnsByCode
Returns the Command for the specified answer command code, or null if not found. -
getAnsByCode
Deprecated.Use the method with appId instead(getAnsByCode(int code, int appId))Returns the Command for the specified answer command code, or null if not found. -
getByName
Returns the Command for the specified command name, or null if not found. -
getCode
public int getCode()Returns the command code. -
getAppId
public int getAppId()Returns the Application Identifier. -
getName
Returns the command name. -
isRequest
public boolean isRequest()Returns true if this is a request command, or false if this is an answer. -
isProxiable
public boolean isProxiable()Returns true if this command is proxiable. -
getFactory
Returns the MessageFactory for this command, or null if none. -
toString
-
appendXml
-