org.mobicents.slee.resource.diameter.gq.events
Class GqReAuthRequestImpl

java.lang.Object
  extended by org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
      extended by org.mobicents.slee.resource.diameter.gq.events.GqReAuthRequestImpl
All Implemented Interfaces:
java.lang.Cloneable, net.java.slee.resource.diameter.base.events.DiameterMessage, GqReAuthRequest

public class GqReAuthRequestImpl
extends org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
implements GqReAuthRequest

 7.1.3  Re-Auth-Request (RAR) command
 The RAR command, indicated by the Command-Code field set to 258 and the 'R' bit set in
 the Command Flags field, is sent by the SPDF to the AF in order to indicate a specific
 action.
 
 However, application-specific authentication and/or authorization messages are not 
 mandated for the Gq application in response to an RAR command.
 
 The values INDICATION_OF_RELEASE_OF_BEARER, INDICATION_OF_SUBSCRIBER_DETACHMENT, 
 INDICATION_OF_RESERVATION_EXPIRATION and INDICATION_OF_LOSS_OF_BEARER, 
 INDICATION_OF_RECOVERY_OF_BEARER and INDICATION_OF_RELEASE_OF_BEARER of the 
 Specific-Action AVP shall not be combined with each other in an Re-Auth-Request.
 
 Message Format:
 
 <RA-Request> ::= < Diameter Header: 258, REQ, PXY > 
                  < Session-Id >
                  { Origin-Host } 
                  { Origin-Realm } 
                  { Destination-Realm } 
                  { Destination-Host } 
                  { Auth-Application-Id }
                 *{ Specific-Action } 
                 *[ Flow-Description ]
                  [ Globally-Unique-Address ]
                  [ Logical-Access-Id ] 
                 *[ Flows ]
                  [ Abort-Cause ]
                  [ Origin-State-Id ] 
                 *[ Proxy-Info ] 
                 *[ Route-Record ] 
                 *[ AVP ]
 

Author:
Yulian Oifa

Field Summary
 
Fields inherited from class org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
message
 
Fields inherited from interface net.java.slee.resource.diameter.gq.events.GqReAuthRequest
COMMAND_CODE
 
Constructor Summary
GqReAuthRequestImpl(org.jdiameter.api.Message message)
           
 
Method Summary
 AbortCause getAbortCause()
          Returns the value of the Abort-Cause AVP, of type AbortCause.
 Flows[] getFlows()
          Returns the set of Flows AVPs.
 byte[] getLogicalAccessId()
          Returns the value of the Logical-Access-Id AVP, of type OctetString.
 java.lang.String getLongName()
           
 java.lang.String getShortName()
           
 SpecificAction[] getSpecificActions()
          Returns the set of Specific-Action AVPs.
 boolean hasAbortCause()
          Returns true if the Abort-Cause AVP is present in the message.
 boolean hasLogicalAccessId()
          Returns true if the Logical-Access-Id AVP is present in the message.
 void setAbortCause(AbortCause abortCause)
          Sets the value of the Abort-Cause AVP, of type AbortCause.
 void setFlows(Flows flow)
          Sets a single Flows AVP in the message, of type Flows.
 void setFlows(Flows[] flows)
          Sets the set of Flows AVPs, with all the values in the given array.
 void setLogicalAccessId(byte[] logicalAccessId)
          Sets the value of the Logical-Access-Id AVP, of type OctetString.
 void setSpecificAction(SpecificAction specificAction)
          Sets a single Specific-Action AVP in the message, of type SpecificAction.
 void setSpecificActions(SpecificAction[] specificActions)
          Sets the set of Specific-Action AVPs, with all the values in the given array.
 
Methods inherited from class org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
addAvp, addAvp, addAvp, addAvp, clone, getAcctApplicationId, getAuthApplicationId, getAvp, getAvp, getAvp, getAvpAsAddress, getAvpAsAddress, getAvpAsCustom, getAvpAsCustom, getAvpAsDiameterIdentity, getAvpAsDiameterIdentity, getAvpAsDiameterURI, getAvpAsDiameterURI, getAvpAsEnumerated, getAvpAsEnumerated, getAvpAsFloat32, getAvpAsFloat32, getAvpAsFloat64, getAvpAsFloat64, getAvpAsGrouped, getAvpAsGrouped, getAvpAsInteger32, getAvpAsInteger32, getAvpAsInteger64, getAvpAsInteger64, getAvpAsIPFilterRule, getAvpAsIPFilterRule, getAvpAsOctetString, getAvpAsOctetString, getAvpAsRaw, getAvpAsRaw, getAvpAsTime, getAvpAsTime, getAvpAsUnsigned32, getAvpAsUnsigned32, getAvpAsUnsigned64, getAvpAsUnsigned64, getAvpAsUTF8String, getAvpAsUTF8String, getAvps, getAvpsAsAddress, getAvpsAsAddress, getAvpsAsCustom, getAvpsAsCustom, getAvpsAsDiameterIdentity, getAvpsAsDiameterIdentity, getAvpsAsDiameterURI, getAvpsAsDiameterURI, getAvpsAsEnumerated, getAvpsAsEnumerated, getAvpsAsFloat32, getAvpsAsFloat32, getAvpsAsFloat64, getAvpsAsFloat64, getAvpsAsGrouped, getAvpsAsGrouped, getAvpsAsInteger32, getAvpsAsInteger32, getAvpsAsInteger64, getAvpsAsInteger64, getAvpsAsIPFilterRule, getAvpsAsIPFilterRule, getAvpsAsOctetString, getAvpsAsOctetString, getAvpsAsRaw, getAvpsAsRaw, getAvpsAsTime, getAvpsAsTime, getAvpsAsUnsigned32, getAvpsAsUnsigned32, getAvpsAsUnsigned64, getAvpsAsUnsigned64, getAvpsAsUTF8String, getAvpsAsUTF8String, getCommand, getData, getDestinationHost, getDestinationRealm, getErrorMessage, getErrorReportingHost, getEventTimestamp, getExtensionAvps, getFailedAvp, getFailedAvps, getGenericData, getHeader, getOriginHost, getOriginRealm, getOriginStateId, getProxyInfos, getRedirectHosts, getRedirectHostUsage, getRedirectMaxCacheTime, getResultCode, getRouteRecords, getSessionId, getUserName, getVendorSpecificApplicationId, hasAcctApplicationId, hasAuthApplicationId, hasAvp, hasAvp, hasDestinationHost, hasDestinationRealm, hasErrorMessage, hasErrorReportingHost, hasEventTimestamp, hasFailedAvp, hasOriginHost, hasOriginRealm, hasOriginStateId, hasRedirectHosts, hasRedirectHostUsage, hasRedirectMaxCacheTime, hasResultCode, hasSessionId, hasUserName, hasVendorSpecificApplicationId, removeData, reportAvpFetchError, setAcctApplicationId, setAuthApplicationId, setAvpAsFloat32, setAvpAsFloat64, setAvpAsGrouped, setAvpAsInteger32, setAvpAsInteger64, setAvpAsOctetString, setAvpAsRaw, setAvpAsTime, setAvpAsUnsigned32, setAvpAsUnsigned64, setAvpAsUTF8String, setData, setDestinationHost, setDestinationRealm, setErrorMessage, setErrorReportingHost, setEventTimestamp, setExtensionAvps, setFailedAvp, setFailedAvps, setOriginHost, setOriginRealm, setOriginStateId, setProxyInfo, setProxyInfos, setRedirectHost, setRedirectHosts, setRedirectHostUsage, setRedirectMaxCacheTime, setResultCode, setRouteRecord, setRouteRecords, setSessionId, setUserName, setVendorSpecificApplicationId, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.java.slee.resource.diameter.gq.events.GqReAuthRequest
getAuthApplicationId, getOriginStateId, getProxyInfos, getRouteRecords, hasAuthApplicationId, hasOriginStateId, setAuthApplicationId, setOriginStateId, setProxyInfo, setProxyInfos, setRouteRecord, setRouteRecords
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.DiameterMessage
clone, getAvps, getCommand, getDestinationHost, getDestinationRealm, getExtensionAvps, getHeader, getOriginHost, getOriginRealm, getSessionId, hasDestinationHost, hasDestinationRealm, hasOriginHost, hasOriginRealm, hasSessionId, setDestinationHost, setDestinationRealm, setExtensionAvps, setOriginHost, setOriginRealm, setSessionId
 

Constructor Detail

GqReAuthRequestImpl

public GqReAuthRequestImpl(org.jdiameter.api.Message message)
Method Detail

getSpecificActions

public SpecificAction[] getSpecificActions()
Description copied from interface: GqReAuthRequest
Returns the set of Specific-Action AVPs.

Specified by:
getSpecificActions in interface GqReAuthRequest
Returns:

setSpecificAction

public void setSpecificAction(SpecificAction specificAction)
                       throws java.lang.IllegalStateException
Description copied from interface: GqReAuthRequest
Sets a single Specific-Action AVP in the message, of type SpecificAction.

Specified by:
setSpecificAction in interface GqReAuthRequest
Throws:
java.lang.IllegalStateException

setSpecificActions

public void setSpecificActions(SpecificAction[] specificActions)
                        throws java.lang.IllegalStateException
Description copied from interface: GqReAuthRequest
Sets the set of Specific-Action AVPs, with all the values in the given array.

Specified by:
setSpecificActions in interface GqReAuthRequest
Throws:
java.lang.IllegalStateException

getFlows

public Flows[] getFlows()
Description copied from interface: GqReAuthRequest
Returns the set of Flows AVPs.

Specified by:
getFlows in interface GqReAuthRequest
Returns:

setFlows

public void setFlows(Flows flow)
              throws java.lang.IllegalStateException
Description copied from interface: GqReAuthRequest
Sets a single Flows AVP in the message, of type Flows.

Specified by:
setFlows in interface GqReAuthRequest
Throws:
java.lang.IllegalStateException

setFlows

public void setFlows(Flows[] flows)
              throws java.lang.IllegalStateException
Description copied from interface: GqReAuthRequest
Sets the set of Flows AVPs, with all the values in the given array.

Specified by:
setFlows in interface GqReAuthRequest
Throws:
java.lang.IllegalStateException

hasAbortCause

public boolean hasAbortCause()
Description copied from interface: GqReAuthRequest
Returns true if the Abort-Cause AVP is present in the message.

Specified by:
hasAbortCause in interface GqReAuthRequest

getAbortCause

public AbortCause getAbortCause()
Description copied from interface: GqReAuthRequest
Returns the value of the Abort-Cause AVP, of type AbortCause.

Specified by:
getAbortCause in interface GqReAuthRequest
Returns:
the value of the Abort-Cause AVP or null if it has not been set on this message

setAbortCause

public void setAbortCause(AbortCause abortCause)
                   throws java.lang.IllegalStateException
Description copied from interface: GqReAuthRequest
Sets the value of the Abort-Cause AVP, of type AbortCause.

Specified by:
setAbortCause in interface GqReAuthRequest
Throws:
java.lang.IllegalStateException - if setAbortCause has already been called

hasLogicalAccessId

public boolean hasLogicalAccessId()
Description copied from interface: GqReAuthRequest
Returns true if the Logical-Access-Id AVP is present in the message.

Specified by:
hasLogicalAccessId in interface GqReAuthRequest

getLogicalAccessId

public byte[] getLogicalAccessId()
Description copied from interface: GqReAuthRequest
Returns the value of the Logical-Access-Id AVP, of type OctetString.

Specified by:
getLogicalAccessId in interface GqReAuthRequest
Returns:
the value of the Logical-Access-Id AVP or null if it has not been set on this message

setLogicalAccessId

public void setLogicalAccessId(byte[] logicalAccessId)
                        throws java.lang.IllegalStateException
Description copied from interface: GqReAuthRequest
Sets the value of the Logical-Access-Id AVP, of type OctetString.

Specified by:
setLogicalAccessId in interface GqReAuthRequest
Throws:
java.lang.IllegalStateException - if setLogicalAccessId has already been called

getLongName

public java.lang.String getLongName()
Specified by:
getLongName in class org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl

getShortName

public java.lang.String getShortName()
Specified by:
getShortName in class org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl


Copyright © 2012. All Rights Reserved.