Interface DiameterHeader
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Objectclone()Creates and returns a deep copy of this diameter header instance.intgetApplicationId()Return application ID from this Diameter header.intgetCommandCode()Return the command code stored in this Diameter header.intgetEndToEndId()Return End-to-End ID from this Diameter header.intgetHopByHopId()Return Hop-by-Hop ID from this Diameter header.intgetMessageLength()Return the message length stored in this Diameter header.shortgetVersion()Return the Diameter version ID from this Diameter header.booleanisError()Return true if the error flag is set in this header.booleanisPotentiallyRetransmitted()Return true if the potentially retransmitted flag is set in this header.booleanisProxiable()Return true if the proxiable flag is set in this header.booleanisRequest()Return true if the request flag is set in this header.voidsetPotentiallyRetransmitted(boolean isPotentiallyRetransmitted)Sets the state of potentially retransmitted flag in this header.
-
-
-
Method Detail
-
isRequest
boolean isRequest()
Return true if the request flag is set in this header.- Returns:
- request flag
-
isProxiable
boolean isProxiable()
Return true if the proxiable flag is set in this header.- Returns:
- proxiable flag
-
isError
boolean isError()
Return true if the error flag is set in this header.- Returns:
- error flag
-
isPotentiallyRetransmitted
boolean isPotentiallyRetransmitted()
Return true if the potentially retransmitted flag is set in this header.- Returns:
- potentially retransmitted flag
-
setPotentiallyRetransmitted
void setPotentiallyRetransmitted(boolean isPotentiallyRetransmitted) throws IllegalArgumentExceptionSets the state of potentially retransmitted flag in this header.- Parameters:
isPotentiallyRetransmitted- true if message is a possible duplicate, false otherwise.- Throws:
IllegalArgumentException- if isPotentiallyRetransmitted value is set to true for an answer (that isisRequest()is false). This flag MUST NOT be set in answer messages.
-
getApplicationId
int getApplicationId()
Return application ID from this Diameter header.- Returns:
- the application ID
-
getHopByHopId
int getHopByHopId()
Return Hop-by-Hop ID from this Diameter header.- Returns:
- the hop-by-hop id
-
getEndToEndId
int getEndToEndId()
Return End-to-End ID from this Diameter header.- Returns:
- the end-to-end id
-
getVersion
short getVersion()
Return the Diameter version ID from this Diameter header.- Returns:
- the value 1
-
getMessageLength
int getMessageLength()
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.- Returns:
- the message length
-
getCommandCode
int getCommandCode()
Return the command code stored in this Diameter header.- Returns:
- the command code
-
clone
Object clone()
Creates and returns a deep copy of this diameter header instance.- Returns:
- a deep copy of this header.
-
-