BEA Systems, Inc.

BEA WebLogic SIP Server 3.1 API Reference


com.bea.wcp.diameter
Class Command

java.lang.Object
  extended bycom.bea.wcp.diameter.Command

public final class Command
extends java.lang.Object

Diameter command information.

Copyright © 2006 BEA Systems, Inc. All Rights Reserved.

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
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

ACA

public static final Command ACA
Accounting-Answer (ACA)


ACR

public static final Command ACR
Accounting-Request (ACR)


ASA

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


ASR

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


CEA

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


CER

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


CODE_AC

public static final int CODE_AC
See Also:
Constant Field Values

CODE_CE

public static final int CODE_CE
See Also:
Constant Field Values

CODE_DP

public static final int CODE_DP
See Also:
Constant Field Values

CODE_DW

public static final int CODE_DW
See Also:
Constant Field Values

CODE_RA

public static final int CODE_RA
See Also:
Constant Field Values

DPA

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


DPR

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


DWA

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


DWR

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


RAA

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


RAR

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


STA

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


STR

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

Method Detail

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

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,
                             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

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.


getFactory

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


getName

public java.lang.String getName()
Returns the command name.


getReqByCode

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


isProxiable

public boolean isProxiable()
Returns true if this command is proxiable.


isRequest

public boolean isRequest()
Returns true if this is a request command, or false if this is an answer.


toString

public java.lang.String toString()

Documentation is available at
http://e-docs.bea.com/wlcp/wlss31/
Copyright 2007 BEA Systems Inc.