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

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

public class GqAAAnswerImpl
extends org.mobicents.slee.resource.diameter.base.events.DiameterMessageImpl
implements GqAAAnswer

 7.1.2 AA-Answer(AAA) command
 The AAA command, indicated by the Command-Code field set to 265 and the "R" bit cleared in the Command Flags
 field, is sent by the SPDF to the AF in response to the AAR command.
 Message Format:
 <AA-Answer> ::= < Diameter Header: 265, PXY >
                 < Session-Id >
                 { Auth-Application-Id }
                 { Origin-Host }
                 { Origin-Realm }
                 [ Result-Code ]
                 [ Experimental-Result ]
                 [ Binding-Information ]
                 [ Reservation-Priority ]
                 [ Error-Message ]
                 [ Error-Reporting-Host ]
                 [ Authorization-Lifetime ]
                 [ Auth-Grace-Period ]
                 [ Failed-AVP ]
                 [ Proxy-Info ]
                 [ 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.GqAAAnswer
COMMAND_CODE
 
Constructor Summary
GqAAAnswerImpl(org.jdiameter.api.Message message)
           
 
Method Summary
 long getAuthGracePeriod()
          Returns the value of the Auth-Grace-Period AVP, of type Unsigned32.
 long getAuthorizationLifetime()
          Returns the value of the Authorization-Lifetime AVP, of type Unsigned32.
 BindingInformation getBindingInformation()
          Returns the value of the Binding-Information AVP, of type BindingInformation.
 net.java.slee.resource.diameter.base.events.avp.ExperimentalResultAvp getExperimentalResult()
          Returns the value of the Experimental-Result AVP, of type ExperimentalResultAvp.
 java.lang.String getLongName()
           
 ReservationPriority getReservationPriority()
          Returns the value of the Reservation-Priority AVP, of type ReservationPriority.
 java.lang.String getShortName()
           
 boolean hasAuthGracePeriod()
          Returns true if the Auth-Grace-Period AVP is present in the message.
 boolean hasAuthorizationLifetime()
          Returns true if the Authorization-Lifetime AVP is present in the message.
 boolean hasBindingInformation()
          Returns true if the Binding-Information AVP is present in the message.
 boolean hasExperimentalResult()
          Returns true if the Experimental-Result AVP is present in the message.
 boolean hasReservationPriority()
          Returns true if the Reservation-Priority AVP is present in the message.
 void setAuthGracePeriod(long authGracePeriod)
          Sets the value of the Auth-Grace-Period AVP, of type Unsigned32.
 void setAuthorizationLifetime(long authorizationLifetime)
          Sets the value of the Authorization-Lifetime AVP, of type Unsigned32.
 void setBindingInformation(BindingInformation bindingInformation)
          Sets the value of the Binding-Information AVP, of type BindingInformation.
 void setExperimentalResult(net.java.slee.resource.diameter.base.events.avp.ExperimentalResultAvp experimentalResult)
          Sets the value of the Experimental-Result AVP, of type ExperimentalResultAvp.
 void setReservationPriority(ReservationPriority reservationPriority)
          Sets the value of the Reservation-Priority AVP, of type ReservationPriority.
 
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.GqAAAnswer
getAuthApplicationId, getErrorMessage, getErrorReportingHost, getFailedAvps, getProxyInfos, getResultCode, hasAuthApplicationId, hasErrorMessage, hasErrorReportingHost, hasResultCode, setAuthApplicationId, setErrorMessage, setErrorReportingHost, setFailedAvp, setFailedAvps, setProxyInfo, setProxyInfos, setResultCode
 
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

GqAAAnswerImpl

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

getAuthorizationLifetime

public long getAuthorizationLifetime()
Description copied from interface: GqAAAnswer
Returns the value of the Authorization-Lifetime AVP, of type Unsigned32.

Specified by:
getAuthorizationLifetime in interface GqAAAnswer
Returns:

setAuthorizationLifetime

public void setAuthorizationLifetime(long authorizationLifetime)
                              throws java.lang.IllegalStateException
Description copied from interface: GqAAAnswer
Sets the value of the Authorization-Lifetime AVP, of type Unsigned32.

Specified by:
setAuthorizationLifetime in interface GqAAAnswer
Throws:
java.lang.IllegalStateException

hasAuthorizationLifetime

public boolean hasAuthorizationLifetime()
Description copied from interface: GqAAAnswer
Returns true if the Authorization-Lifetime AVP is present in the message.

Specified by:
hasAuthorizationLifetime in interface GqAAAnswer
Returns:

hasAuthGracePeriod

public boolean hasAuthGracePeriod()
Description copied from interface: GqAAAnswer
Returns true if the Auth-Grace-Period AVP is present in the message.

Specified by:
hasAuthGracePeriod in interface GqAAAnswer

getAuthGracePeriod

public long getAuthGracePeriod()
Description copied from interface: GqAAAnswer
Returns the value of the Auth-Grace-Period AVP, of type Unsigned32. Use GqAAAnswer.hasAuthGracePeriod() to check the existence of this AVP.

Specified by:
getAuthGracePeriod in interface GqAAAnswer
Returns:
the value of the Auth-Grace-Period AVP

setAuthGracePeriod

public void setAuthGracePeriod(long authGracePeriod)
Description copied from interface: GqAAAnswer
Sets the value of the Auth-Grace-Period AVP, of type Unsigned32.

Specified by:
setAuthGracePeriod in interface GqAAAnswer

hasExperimentalResult

public boolean hasExperimentalResult()
Description copied from interface: GqAAAnswer
Returns true if the Experimental-Result AVP is present in the message.

Specified by:
hasExperimentalResult in interface GqAAAnswer

getExperimentalResult

public net.java.slee.resource.diameter.base.events.avp.ExperimentalResultAvp getExperimentalResult()
Description copied from interface: GqAAAnswer
Returns the value of the Experimental-Result AVP, of type ExperimentalResultAvp.

Specified by:
getExperimentalResult in interface GqAAAnswer
Returns:
the value of the Experimental-Result AVP or null if it has not been set on this message

setExperimentalResult

public void setExperimentalResult(net.java.slee.resource.diameter.base.events.avp.ExperimentalResultAvp experimentalResult)
                           throws java.lang.IllegalStateException
Description copied from interface: GqAAAnswer
Sets the value of the Experimental-Result AVP, of type ExperimentalResultAvp.

Specified by:
setExperimentalResult in interface GqAAAnswer
Throws:
java.lang.IllegalStateException - if setErrorReportingHost has already been called

hasBindingInformation

public boolean hasBindingInformation()
Description copied from interface: GqAAAnswer
Returns true if the Binding-Information AVP is present in the message.

Specified by:
hasBindingInformation in interface GqAAAnswer

getBindingInformation

public BindingInformation getBindingInformation()
Description copied from interface: GqAAAnswer
Returns the value of the Binding-Information AVP, of type BindingInformation.

Specified by:
getBindingInformation in interface GqAAAnswer
Returns:
the value of the Binding-Information AVP or null if it has not been set on this message

setBindingInformation

public void setBindingInformation(BindingInformation bindingInformation)
                           throws java.lang.IllegalStateException
Description copied from interface: GqAAAnswer
Sets the value of the Binding-Information AVP, of type BindingInformation.

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

hasReservationPriority

public boolean hasReservationPriority()
Description copied from interface: GqAAAnswer
Returns true if the Reservation-Priority AVP is present in the message.

Specified by:
hasReservationPriority in interface GqAAAnswer

getReservationPriority

public ReservationPriority getReservationPriority()
Description copied from interface: GqAAAnswer
Returns the value of the Reservation-Priority AVP, of type ReservationPriority.

Specified by:
getReservationPriority in interface GqAAAnswer
Returns:
the value of the Reservation-Priority AVP or null if it has not been set on this message

setReservationPriority

public void setReservationPriority(ReservationPriority reservationPriority)
                            throws java.lang.IllegalStateException
Description copied from interface: GqAAAnswer
Sets the value of the Reservation-Priority AVP, of type ReservationPriority.

Specified by:
setReservationPriority in interface GqAAAnswer
Throws:
java.lang.IllegalStateException - if setReservationPriority 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.