org.mobicents.slee.resource.diameter.base.events
Class DiameterCommandImpl

java.lang.Object
  extended by org.mobicents.slee.resource.diameter.base.events.DiameterCommandImpl
All Implemented Interfaces:
DiameterCommand

public class DiameterCommandImpl
extends java.lang.Object
implements DiameterCommand


Constructor Summary
DiameterCommandImpl(int code, int applicationId, boolean request, boolean proxiable)
           
DiameterCommandImpl(int code, long applicationId, java.lang.String shortName, java.lang.String longName, boolean request, boolean proxiable)
           
 
Method Summary
 long getApplicationId()
          Return the application ID for this command, e.g., 0
 int getCode()
          Return the code for this command, e.g., 257.
 java.lang.String getLongName()
          Return the long name for this command, e.g., "Capabilities-Exchange-Request".
 java.lang.String getShortName()
          Return the short name for this command, e.g., "CER".
 boolean isProxiable()
          Return true if and only if this command may be proxied.
 boolean isRequest()
          Return true if and only if this command is 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

DiameterCommandImpl

public DiameterCommandImpl(int code,
                           int applicationId,
                           boolean request,
                           boolean proxiable)

DiameterCommandImpl

public DiameterCommandImpl(int code,
                           long applicationId,
                           java.lang.String shortName,
                           java.lang.String longName,
                           boolean request,
                           boolean proxiable)
Method Detail

getCode

public int getCode()
Description copied from interface: DiameterCommand
Return the code for this command, e.g., 257.

Specified by:
getCode in interface DiameterCommand
Returns:
the code for this command

getApplicationId

public long getApplicationId()
Description copied from interface: DiameterCommand
Return the application ID for this command, e.g., 0

Specified by:
getApplicationId in interface DiameterCommand
Returns:
the application ID for this command

getShortName

public java.lang.String getShortName()
Description copied from interface: DiameterCommand
Return the short name for this command, e.g., "CER".

Specified by:
getShortName in interface DiameterCommand
Returns:
the short name for this command

getLongName

public java.lang.String getLongName()
Description copied from interface: DiameterCommand
Return the long name for this command, e.g., "Capabilities-Exchange-Request".

Specified by:
getLongName in interface DiameterCommand
Returns:
the long name for this command

isRequest

public boolean isRequest()
Description copied from interface: DiameterCommand
Return true if and only if this command is a request.

Specified by:
isRequest in interface DiameterCommand
Returns:
true if and only if this command is a request

isProxiable

public boolean isProxiable()
Description copied from interface: DiameterCommand
Return true if and only if this command may be proxied.

Specified by:
isProxiable in interface DiameterCommand
Returns:
true if and only if this command may be proxied

toString

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


Copyright © 2008. All Rights Reserved.