org.mobicents.slee.resource.diameter.ro.events.avp
Class SdpMediaComponentImpl

java.lang.Object
  extended by org.mobicents.slee.resource.diameter.base.events.avp.DiameterAvpImpl
      extended by org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl
          extended by org.mobicents.slee.resource.diameter.ro.events.avp.SdpMediaComponentImpl
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, java.lang.Cloneable, net.java.slee.resource.diameter.base.events.avp.DiameterAvp, net.java.slee.resource.diameter.base.events.avp.GroupedAvp, SdpMediaComponent

public class SdpMediaComponentImpl
extends org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl
implements SdpMediaComponent

SdpMediaComponentImpl.java
Project: mobicents
11:19:56 PM Apr 11, 2009

Author:
Alexandre Mendonca
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl
avpSet
 
Fields inherited from class org.mobicents.slee.resource.diameter.base.events.avp.DiameterAvpImpl
code, mnd, name, prt, type, value, vendorId
 
Fields inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp
FLAG_RULE_MAY, FLAG_RULE_MUST, FLAG_RULE_MUSTNOT
 
Constructor Summary
SdpMediaComponentImpl()
           
SdpMediaComponentImpl(int code, long vendorId, int mnd, int prt, byte[] value)
           
 
Method Summary
 java.lang.String getAuthorizedQos()
          Returns the value of the Authorized-QoS AVP, of type UTF8String.
 MediaInitiatorFlag getMediaInitiatorFlag()
          Returns the value of the Media-Initiator-Flag AVP, of type Enumerated.
 java.lang.String[] getSdpMediaDescriptions()
          Returns the set of SDP-Media-Description AVPs.
 java.lang.String getSdpMediaName()
          Returns the value of the SDP-Media-Name AVP, of type UTF8String.
 java.lang.String getTgppChargingId()
          Returns the value of the TGPP-Charging-Id AVP, of type OctetString.
 boolean hasAuthorizedQos()
          Returns true if the Authorized-QoS AVP is present in the message.
 boolean hasMediaInitiatorFlag()
          Returns true if the Media-Initiator-Flag AVP is present in the message.
 boolean hasSdpMediaName()
          Returns true if the SDP-Media-Name AVP is present in the message.
 boolean hasTgppChargingId()
          Returns true if the TGPP-Charging-Id AVP is present in the message.
 void setAuthorizedQos(java.lang.String authorizedQos)
          Sets the value of the Authorized-QoS AVP, of type UTF8String.
 void setMediaInitiatorFlag(MediaInitiatorFlag mediaInitiatorFlag)
          Sets the value of the Media-Initiator-Flag AVP, of type Enumerated.
 void setSdpMediaDescription(java.lang.String sdpMediaDescription)
          Sets a single SDP-Media-Description AVP in the message, of type UTF8String.
 void setSdpMediaDescriptions(java.lang.String[] sdpMediaDescriptions)
          Sets the set of SDP-Media-Description AVPs, with all the values in the given array.
 void setSdpMediaName(java.lang.String sdpMediaName)
          Sets the value of the SDP-Media-Name AVP, of type UTF8String.
 void setTgppChargingId(java.lang.String tgppChargingId)
          Sets the value of the TGPP-Charging-Id AVP, of type OctetString.
 
Methods inherited from class org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl
addAvp, addAvp, addAvp, addAvp, byteArrayValue, clone, doubleValue, equals, floatValue, 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, 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, getExtensionAvps, getGenericData, getValue, hasAvp, hasAvp, intValue, longValue, setAvpAsFloat32, setAvpAsFloat64, setAvpAsGrouped, setAvpAsInteger32, setAvpAsInteger64, setAvpAsOctetString, setAvpAsRaw, setAvpAsTime, setAvpAsUnsigned32, setAvpAsUnsigned64, setAvpAsUTF8String, setExtensionAvps, setValue, stringValue
 
Methods inherited from class org.mobicents.slee.resource.diameter.base.events.avp.DiameterAvpImpl
getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorId, hashCode, octetStringValue, readExternal, toString, writeExternal
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.GroupedAvp
getExtensionAvps, setExtensionAvps
 
Methods inherited from interface net.java.slee.resource.diameter.base.events.avp.DiameterAvp
byteArrayValue, clone, doubleValue, floatValue, getCode, getMandatoryRule, getName, getProtectedRule, getType, getVendorId, intValue, longValue, octetStringValue, stringValue
 
Methods inherited from interface java.io.Externalizable
readExternal, writeExternal
 

Constructor Detail

SdpMediaComponentImpl

public SdpMediaComponentImpl()

SdpMediaComponentImpl

public SdpMediaComponentImpl(int code,
                             long vendorId,
                             int mnd,
                             int prt,
                             byte[] value)
Parameters:
code -
vendorId -
mnd -
prt -
value -
Method Detail

getAuthorizedQos

public java.lang.String getAuthorizedQos()
Description copied from interface: SdpMediaComponent
Returns the value of the Authorized-QoS AVP, of type UTF8String. A return value of null implies that the AVP has not been set.

Specified by:
getAuthorizedQos in interface SdpMediaComponent

getMediaInitiatorFlag

public MediaInitiatorFlag getMediaInitiatorFlag()
Description copied from interface: SdpMediaComponent
Returns the value of the Media-Initiator-Flag AVP, of type Enumerated. A return value of null implies that the AVP has not been set.

Specified by:
getMediaInitiatorFlag in interface SdpMediaComponent

getSdpMediaDescriptions

public java.lang.String[] getSdpMediaDescriptions()
Description copied from interface: SdpMediaComponent
Returns the set of SDP-Media-Description AVPs. The returned array contains the AVPs in the order they appear in the message. A return value of null implies that no SDP-Media-Description AVPs have been set. The elements in the given array are String objects.

Specified by:
getSdpMediaDescriptions in interface SdpMediaComponent

getSdpMediaName

public java.lang.String getSdpMediaName()
Description copied from interface: SdpMediaComponent
Returns the value of the SDP-Media-Name AVP, of type UTF8String. A return value of null implies that the AVP has not been set.

Specified by:
getSdpMediaName in interface SdpMediaComponent

getTgppChargingId

public java.lang.String getTgppChargingId()
Description copied from interface: SdpMediaComponent
Returns the value of the TGPP-Charging-Id AVP, of type OctetString. A return value of null implies that the AVP has not been set.

Specified by:
getTgppChargingId in interface SdpMediaComponent

hasAuthorizedQos

public boolean hasAuthorizedQos()
Description copied from interface: SdpMediaComponent
Returns true if the Authorized-QoS AVP is present in the message.

Specified by:
hasAuthorizedQos in interface SdpMediaComponent

hasMediaInitiatorFlag

public boolean hasMediaInitiatorFlag()
Description copied from interface: SdpMediaComponent
Returns true if the Media-Initiator-Flag AVP is present in the message.

Specified by:
hasMediaInitiatorFlag in interface SdpMediaComponent

hasSdpMediaName

public boolean hasSdpMediaName()
Description copied from interface: SdpMediaComponent
Returns true if the SDP-Media-Name AVP is present in the message.

Specified by:
hasSdpMediaName in interface SdpMediaComponent

hasTgppChargingId

public boolean hasTgppChargingId()
Description copied from interface: SdpMediaComponent
Returns true if the TGPP-Charging-Id AVP is present in the message.

Specified by:
hasTgppChargingId in interface SdpMediaComponent

setAuthorizedQos

public void setAuthorizedQos(java.lang.String authorizedQos)
Description copied from interface: SdpMediaComponent
Sets the value of the Authorized-QoS AVP, of type UTF8String.

Specified by:
setAuthorizedQos in interface SdpMediaComponent

setMediaInitiatorFlag

public void setMediaInitiatorFlag(MediaInitiatorFlag mediaInitiatorFlag)
Description copied from interface: SdpMediaComponent
Sets the value of the Media-Initiator-Flag AVP, of type Enumerated.

Specified by:
setMediaInitiatorFlag in interface SdpMediaComponent

setSdpMediaDescription

public void setSdpMediaDescription(java.lang.String sdpMediaDescription)
Description copied from interface: SdpMediaComponent
Sets a single SDP-Media-Description AVP in the message, of type UTF8String.

Specified by:
setSdpMediaDescription in interface SdpMediaComponent

setSdpMediaDescriptions

public void setSdpMediaDescriptions(java.lang.String[] sdpMediaDescriptions)
Description copied from interface: SdpMediaComponent
Sets the set of SDP-Media-Description AVPs, with all the values in the given array. The AVPs will be added to message in the order in which they appear in the array. Note: the array must not be altered by the caller following this call, and getSdpMediaDescriptions() is not guaranteed to return the same array instance, e.g. an "==" check would fail.

Specified by:
setSdpMediaDescriptions in interface SdpMediaComponent

setSdpMediaName

public void setSdpMediaName(java.lang.String sdpMediaName)
Description copied from interface: SdpMediaComponent
Sets the value of the SDP-Media-Name AVP, of type UTF8String.

Specified by:
setSdpMediaName in interface SdpMediaComponent

setTgppChargingId

public void setTgppChargingId(java.lang.String tgppChargingId)
Description copied from interface: SdpMediaComponent
Sets the value of the TGPP-Charging-Id AVP, of type OctetString.

Specified by:
setTgppChargingId in interface SdpMediaComponent


Copyright © 2011. All Rights Reserved.