Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.0

E18767-01


com.bea.wcp.diameter
Class Command

java.lang.Object
  extended by com.bea.wcp.diameter.Command


public final class Command
extends java.lang.Object

Diameter command information.


Field Summary
static Command ACA
          Accounting-Answer (ACA)
static Command ACR
          Accounting-Request (ACR)
static Command ASA
          Abort-Session-Answer (ASA)
static Command ASR
          Abort-Session-Request (ASR)
static Command CEA
          Capabilities-Exchange-Answer (CEA)
static Command CER
          Capabilities-Exchange-Request (CER)
static int CODE_AC
           
static int CODE_CE
           
static int CODE_DP
           
static int CODE_DW
           
static int CODE_RA
           
static Command DPA
          Disconnect-Peer-Answer (DPA)
static Command DPR
          Disconnect-Peer-Request (DPR)
static Command DWA
          Device-Watchdog-Answer (DWA)
static Command DWR
          Device-Watchdog-Request (DWR)
static Command RAA
          Re-Auth-Answer (RAA)
static Command RAR
          Re-Auth-Request (RAR)
static Command STA
          Session-Termination-Answer (STA)
static Command STR
          Session-Termination-Request (STR)

 

Method Summary
 XmlBuffer appendXml(XmlBuffer xb)
           
static Command define(int code, java.lang.String name, boolean isRequest)
          Defines a new Command which is proxiable and uses the default message factory.
static Command define(int code, java.lang.String name, boolean isRequest, boolean isProxiable)
          Defines a new Command with default message factory.
static Command define(int code, java.lang.String name, boolean isRequest, boolean isProxiable, MessageFactory factory)
          Defines a new Command.
static Command getAnsByCode(int code)
          Returns the Command for the specified answer command code, or null if not found.
static Command getByName(java.lang.String name)
          Returns the Command for the specified command name, or null if not found.
 int getCode()
          Returns the command code.
 MessageFactory getFactory()
          Returns the MessageFactory for this command, or null if none.
 java.lang.String getName()
          Returns the command name.
static Command getReqByCode(int code)
          Returns the Command for the specified request command code, or null if not found.
 boolean isProxiable()
          Returns true if this command is proxiable.
 boolean isRequest()
          Returns true if this is a request command, or false if this is an answer.
 java.lang.String toString()
           

 

Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

 

Field Detail

CODE_CE

public static final int CODE_CE
See Also:
Constant Field Values

CODE_DW

public static final int CODE_DW
See Also:
Constant Field Values

CODE_DP

public static final int CODE_DP
See Also:
Constant Field Values

CODE_AC

public static final int CODE_AC
See Also:
Constant Field Values

CODE_RA

public static final int CODE_RA
See Also:
Constant Field Values

ASR

public static final Command ASR
Abort-Session-Request (ASR)

ASA

public static final Command ASA
Abort-Session-Answer (ASA)

ACR

public static final Command ACR
Accounting-Request (ACR)

ACA

public static final Command ACA
Accounting-Answer (ACA)

CER

public static final Command CER
Capabilities-Exchange-Request (CER)

CEA

public static final Command CEA
Capabilities-Exchange-Answer (CEA)

DWR

public static final Command DWR
Device-Watchdog-Request (DWR)

DWA

public static final Command DWA
Device-Watchdog-Answer (DWA)

DPR

public static final Command DPR
Disconnect-Peer-Request (DPR)

DPA

public static final Command DPA
Disconnect-Peer-Answer (DPA)

RAR

public static final Command RAR
Re-Auth-Request (RAR)

RAA

public static final Command RAA
Re-Auth-Answer (RAA)

STR

public static final Command STR
Session-Termination-Request (STR)

STA

public static final Command STA
Session-Termination-Answer (STA)

Method Detail

define

public static Command define(int code,
                             java.lang.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 code
name - the command name
isRequest - if true then is request, otherwise is answer
isProxiable - if true then is proxiable
factory - optional message factory for command

define

public static Command define(int code,
                             java.lang.String name,
                             boolean isRequest,
                             boolean isProxiable)
Defines a new Command with default message factory.
Parameters:
code - the command code
name - the command name
isRequest - if true then is request, otherwise is answer
isProxiable - if true then is proxiable

define

public static Command define(int code,
                             java.lang.String name,
                             boolean isRequest)
Defines a new Command which is proxiable and uses the default message factory.
Parameters:
code - the command code
name - the command name
isRequest - if true then is proxiable

getReqByCode

public static Command getReqByCode(int code)
Returns the Command for the specified request command code, or null if not found.

getAnsByCode

public static Command getAnsByCode(int code)
Returns the Command for the specified answer command code, or null if not found.

getByName

public static Command getByName(java.lang.String name)
Returns the Command for the specified command name, or null if not found.

getCode

public int getCode()
Returns the command code.

getName

public java.lang.String 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

public MessageFactory getFactory()
Returns the MessageFactory for this command, or null if none.

toString

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

appendXml

public XmlBuffer appendXml(XmlBuffer xb)

Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.0

E18767-01


Copyright © 2005, 2010, Oracle and/or its affiliates. All rights reserved.