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

java.lang.Object
  extended by org.mobicents.slee.resource.diameter.base.events.DiameterHeaderImpl
All Implemented Interfaces:
java.lang.Cloneable, DiameterHeader

public class DiameterHeaderImpl
extends java.lang.Object
implements DiameterHeader

DiameterHeaderImpl.java
Super project: mobicents
3:05:20 PM Jun 20, 2008

Author:
Alexandre Mendonca , Bartosz Baranowski , Erick Svenson

Constructor Summary
DiameterHeaderImpl(long applicationId, long hopByHopId, long endToEndId, int messageLength, int commandCode, boolean request, boolean proxiable, boolean error, boolean potentiallyRetransmitted)
           
 
Method Summary
 java.lang.Object clone()
          Creates and returns a deep copy of this diameter header instance.
 long getApplicationId()
          Return application ID from this Diameter header.
 int getCommandCode()
          Return the command code stored in this Diameter header.
 long getEndToEndId()
          Return End-to-End ID from this Diameter header.
 long getHopByHopId()
          Return Hop-by-Hop ID from this Diameter header.
 int getMessageLength()
          Return the message length stored in this Diameter header.
 short getVersion()
          Return the Diameter version ID from this Diameter header.
 boolean isError()
          Return true if the error flag is set in this header.
 boolean isPotentiallyRetransmitted()
          Return true if the potentially retransmitted flag is set in this header.
 boolean isProxiable()
          Return true if the proxiable flag is set in this header.
 boolean isRequest()
          Return true if the request flag is set in this header.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DiameterHeaderImpl

public DiameterHeaderImpl(long applicationId,
                          long hopByHopId,
                          long endToEndId,
                          int messageLength,
                          int commandCode,
                          boolean request,
                          boolean proxiable,
                          boolean error,
                          boolean potentiallyRetransmitted)
Method Detail

getApplicationId

public long getApplicationId()
Description copied from interface: DiameterHeader
Return application ID from this Diameter header.

Specified by:
getApplicationId in interface DiameterHeader
Returns:
the application ID

getHopByHopId

public long getHopByHopId()
Description copied from interface: DiameterHeader
Return Hop-by-Hop ID from this Diameter header.

Specified by:
getHopByHopId in interface DiameterHeader
Returns:
the hop-by-hop id

getEndToEndId

public long getEndToEndId()
Description copied from interface: DiameterHeader
Return End-to-End ID from this Diameter header.

Specified by:
getEndToEndId in interface DiameterHeader
Returns:
the end-to-end id

getMessageLength

public int getMessageLength()
Description copied from interface: DiameterHeader
Return the message length stored in this Diameter header. Note that for outgoing messages, the correct length may not be known until the message is encoded for transmission.

Specified by:
getMessageLength in interface DiameterHeader
Returns:
the message length

getCommandCode

public int getCommandCode()
Description copied from interface: DiameterHeader
Return the command code stored in this Diameter header.

Specified by:
getCommandCode in interface DiameterHeader
Returns:
the command code

isRequest

public boolean isRequest()
Description copied from interface: DiameterHeader
Return true if the request flag is set in this header.

Specified by:
isRequest in interface DiameterHeader
Returns:
request flag

isProxiable

public boolean isProxiable()
Description copied from interface: DiameterHeader
Return true if the proxiable flag is set in this header.

Specified by:
isProxiable in interface DiameterHeader
Returns:
proxiable flag

isError

public boolean isError()
Description copied from interface: DiameterHeader
Return true if the error flag is set in this header.

Specified by:
isError in interface DiameterHeader
Returns:
error flag

isPotentiallyRetransmitted

public boolean isPotentiallyRetransmitted()
Description copied from interface: DiameterHeader
Return true if the potentially retransmitted flag is set in this header.

Specified by:
isPotentiallyRetransmitted in interface DiameterHeader
Returns:
potentially retransmitted flag

getVersion

public short getVersion()
Description copied from interface: DiameterHeader
Return the Diameter version ID from this Diameter header.

Specified by:
getVersion in interface DiameterHeader
Returns:
the value 1

clone

public java.lang.Object clone()
Description copied from interface: DiameterHeader
Creates and returns a deep copy of this diameter header instance.

Specified by:
clone in interface DiameterHeader
Overrides:
clone in class java.lang.Object
Returns:
a deep copy of this header.


Copyright © 2008. All Rights Reserved.