org.mobicents.slee.resource.diameter.gq.events.avp
Class MediaComponentDescriptionImpl

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.gq.events.avp.MediaComponentDescriptionImpl
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, MediaComponentDescription

public class MediaComponentDescriptionImpl
extends org.mobicents.slee.resource.diameter.base.events.avp.GroupedAvpImpl
implements MediaComponentDescription

Implementation for MediaComponentDescription

Author:
Yulian Oifa
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
MediaComponentDescriptionImpl()
           
MediaComponentDescriptionImpl(int code, long vendorId, int mnd, int prt, byte[] value)
           
 
Method Summary
 byte[] getAFApplicationIdentifier()
          Returns the value of the AF-Application-Identifier AVP, of type OctetString.
 byte[][] getCodecData()
          Returns the value of the Codec-Data AVP, of type OctetString.
 FlowStatus getFlowStatus()
          Returns the value of the Flow-Status AVP, of type Grouped.
 long getMaxRequestedBandwidthDL()
          Returns the value of the Max-Requested-Bandwidth-DL AVP, of type Unsigned32.
 long getMaxRequestedBandwidthUL()
          Returns the value of the Max-Requested-Bandwidth-UL AVP, of type Unsigned32.
 java.lang.String[] getMediaAuthorizationContextId()
          Returns the value of the Media-Authorization-Context-Id AVP, of type UTF8String.
 long getMediaComponentNumber()
          Returns the value of the Media-Component-Number AVP, of type Unsigned32.
 MediaSubComponent[] getMediaSubComponents()
          Returns the value of the Media-Sub-Component AVP, of type Grouped.
 MediaType getMediaType()
          Returns the value of the Media-Type AVP, of type Grouped.
 long getReservationClass()
          Returns the value of the Reservation-Class AVP, of type Unsigned32.
 ReservationPriority getReservationPriority()
          Returns the value of the Reservation-Priority AVP, of type Grouped.
 long getRRBandwidth()
          Returns the value of the RR-Bandwidth AVP, of type Unsigned32.
 long getRSBandwidth()
          Returns the value of the RS-Bandwidth AVP, of type Unsigned32.
 long getTransportClass()
          Returns the value of the Transport-Class AVP, of type Unsigned32.
 boolean hasAFApplicationIdentifier()
          Returns true if the AF-Application-Identifier AVP is present in the message.
 boolean hasFlowStatus()
          Returns true if the Flow-Status AVP is present in the message.
 boolean hasMaxRequestedBandwidthDL()
          Returns true if the Max-Requested-Bandwidth-DL AVP is present in the message.
 boolean hasMaxRequestedBandwidthUL()
          Returns true if the Max-Requested-Bandwidth-UL AVP is present in the message.
 boolean hasMediaComponentNumber()
          Returns true if the Media-Component-Number AVP is present in the message.
 boolean hasMediaType()
          Returns true if the Media-Type AVP is present in the message.
 boolean hasReservationClass()
          Returns true if the Reservation-Class AVP is present in the message.
 boolean hasReservationPriority()
          Returns true if the Reservation-Priority AVP is present in the message.
 boolean hasRRBandwidth()
          Returns true if the RR-Bandwidth AVP is present in the message.
 boolean hasRSBandwidth()
          Returns true if the RS-Bandwidth AVP is present in the message.
 boolean hasTransportClass()
          Returns true if the Transport-Class AVP is present in the message.
 void setAFApplicationIdentifier(byte[] AFApplicationIdentifier)
          Sets the value of the AF-Application-Identifier AVP, of type OctetString.
 void setCodecData(byte[] codecData)
          Sets the value of the Codec-Data AVP, of type OctetString.
 void setCodecData(byte[][] codecsData)
          Sets the value of the Codec-Data AVP, of type OctetString.
 void setFlowStatus(FlowStatus flowStatus)
          Sets the value of the Flow-Status AVP, of type Unsigned32.
 void setMaxRequestedBandwidthDL(long maxRequestedBandwidthDL)
          Sets the value of the Max-Requested-Bandwidth-DL AVP, of type Unsigned32.
 void setMaxRequestedBandwidthUL(long maxRequestedBandwidthUL)
          Sets the value of the Max-Requested-Bandwidth-UL AVP, of type Unsigned32.
 void setMediaAuthorizationContextId(java.lang.String mediaAuthorizationContextId)
          Sets the value of the Media-Authorization-Context-Id, of type UTF8String.
 void setMediaAuthorizationContextId(java.lang.String[] mediaAuthorizationContextIds)
          Sets the value of the Media-Authorization-Context-Id AVP, of type UTF8String.
 void setMediaComponentNumber(long mediaComponentNumber)
          Sets the value of the Media-Component-Number AVP, of type Unsigned32.
 void setMediaSubComponent(MediaSubComponent mediaSubComponent)
          Sets the value of the Media-Sub-Component AVP, of type Grouped.
 void setMediaSubComponents(MediaSubComponent[] mediaSubComponents)
          Sets the value of the Media-Sub-Component AVP, of type Grouped.
 void setMediaType(MediaType mediaType)
          Sets the value of the Media-Type AVP, of type Unsigned32.
 void setReservationClass(long reservationClass)
          Sets the value of the Reservation-Class AVP, of type Unsigned32.
 void setReservationPriority(ReservationPriority reservationPriority)
          Sets the value of the Reservation-Priority AVP, of type Unsigned32.
 void setRRBandwidth(long RRBandwidth)
          Sets the value of the RR-Bandwidth AVP, of type Unsigned32.
 void setRSBandwidth(long RSBandwidth)
          Sets the value of the RS-Bandwidth AVP, of type Unsigned32.
 void setTransportClass(long transportClass)
          Sets the value of the Transport-Class AVP, of type Unsigned32.
 
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

MediaComponentDescriptionImpl

public MediaComponentDescriptionImpl()

MediaComponentDescriptionImpl

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

getMediaComponentNumber

public long getMediaComponentNumber()
Description copied from interface: MediaComponentDescription
Returns the value of the Media-Component-Number AVP, of type Unsigned32. A return value of null implies that the AVP has not been set.

Specified by:
getMediaComponentNumber in interface MediaComponentDescription

getMediaSubComponents

public MediaSubComponent[] getMediaSubComponents()
Description copied from interface: MediaComponentDescription
Returns the value of the Media-Sub-Component AVP, of type Grouped. A return value of null implies that the AVP has not been set.

Specified by:
getMediaSubComponents in interface MediaComponentDescription

getAFApplicationIdentifier

public byte[] getAFApplicationIdentifier()
Description copied from interface: MediaComponentDescription
Returns the value of the AF-Application-Identifier AVP, of type OctetString. A return value of null implies that the AVP has not been set.

Specified by:
getAFApplicationIdentifier in interface MediaComponentDescription

getMediaType

public MediaType getMediaType()
Description copied from interface: MediaComponentDescription
Returns the value of the Media-Type AVP, of type Grouped. A return value of null implies that the AVP has not been set.

Specified by:
getMediaType in interface MediaComponentDescription

getMaxRequestedBandwidthUL

public long getMaxRequestedBandwidthUL()
Description copied from interface: MediaComponentDescription
Returns the value of the Max-Requested-Bandwidth-UL AVP, of type Unsigned32. A return value of null implies that the AVP has not been set.

Specified by:
getMaxRequestedBandwidthUL in interface MediaComponentDescription

getMaxRequestedBandwidthDL

public long getMaxRequestedBandwidthDL()
Description copied from interface: MediaComponentDescription
Returns the value of the Max-Requested-Bandwidth-DL AVP, of type Unsigned32. A return value of null implies that the AVP has not been set.

Specified by:
getMaxRequestedBandwidthDL in interface MediaComponentDescription

getFlowStatus

public FlowStatus getFlowStatus()
Description copied from interface: MediaComponentDescription
Returns the value of the Flow-Status AVP, of type Grouped. A return value of null implies that the AVP has not been set.

Specified by:
getFlowStatus in interface MediaComponentDescription

getRRBandwidth

public long getRRBandwidth()
Description copied from interface: MediaComponentDescription
Returns the value of the RR-Bandwidth AVP, of type Unsigned32. A return value of null implies that the AVP has not been set.

Specified by:
getRRBandwidth in interface MediaComponentDescription

getRSBandwidth

public long getRSBandwidth()
Description copied from interface: MediaComponentDescription
Returns the value of the RS-Bandwidth AVP, of type Unsigned32. A return value of null implies that the AVP has not been set.

Specified by:
getRSBandwidth in interface MediaComponentDescription

getReservationClass

public long getReservationClass()
Description copied from interface: MediaComponentDescription
Returns the value of the Reservation-Class AVP, of type Unsigned32. A return value of null implies that the AVP has not been set.

Specified by:
getReservationClass in interface MediaComponentDescription

getReservationPriority

public ReservationPriority getReservationPriority()
Description copied from interface: MediaComponentDescription
Returns the value of the Reservation-Priority AVP, of type Grouped. A return value of null implies that the AVP has not been set.

Specified by:
getReservationPriority in interface MediaComponentDescription

getTransportClass

public long getTransportClass()
Description copied from interface: MediaComponentDescription
Returns the value of the Transport-Class AVP, of type Unsigned32. A return value of null implies that the AVP has not been set.

Specified by:
getTransportClass in interface MediaComponentDescription

getCodecData

public byte[][] getCodecData()
Description copied from interface: MediaComponentDescription
Returns the value of the Codec-Data AVP, of type OctetString. A return value of null implies that the AVP has not been set.

Specified by:
getCodecData in interface MediaComponentDescription

getMediaAuthorizationContextId

public java.lang.String[] getMediaAuthorizationContextId()
Description copied from interface: MediaComponentDescription
Returns the value of the Media-Authorization-Context-Id AVP, of type UTF8String. A return value of null implies that the AVP has not been set.

Specified by:
getMediaAuthorizationContextId in interface MediaComponentDescription

hasMediaComponentNumber

public boolean hasMediaComponentNumber()
Description copied from interface: MediaComponentDescription
Returns true if the Media-Component-Number AVP is present in the message.

Specified by:
hasMediaComponentNumber in interface MediaComponentDescription

hasAFApplicationIdentifier

public boolean hasAFApplicationIdentifier()
Description copied from interface: MediaComponentDescription
Returns true if the AF-Application-Identifier AVP is present in the message.

Specified by:
hasAFApplicationIdentifier in interface MediaComponentDescription

hasMediaType

public boolean hasMediaType()
Description copied from interface: MediaComponentDescription
Returns true if the Media-Type AVP is present in the message.

Specified by:
hasMediaType in interface MediaComponentDescription

hasMaxRequestedBandwidthUL

public boolean hasMaxRequestedBandwidthUL()
Description copied from interface: MediaComponentDescription
Returns true if the Max-Requested-Bandwidth-UL AVP is present in the message.

Specified by:
hasMaxRequestedBandwidthUL in interface MediaComponentDescription

hasMaxRequestedBandwidthDL

public boolean hasMaxRequestedBandwidthDL()
Description copied from interface: MediaComponentDescription
Returns true if the Max-Requested-Bandwidth-DL AVP is present in the message.

Specified by:
hasMaxRequestedBandwidthDL in interface MediaComponentDescription

hasFlowStatus

public boolean hasFlowStatus()
Description copied from interface: MediaComponentDescription
Returns true if the Flow-Status AVP is present in the message.

Specified by:
hasFlowStatus in interface MediaComponentDescription

hasRRBandwidth

public boolean hasRRBandwidth()
Description copied from interface: MediaComponentDescription
Returns true if the RR-Bandwidth AVP is present in the message.

Specified by:
hasRRBandwidth in interface MediaComponentDescription

hasRSBandwidth

public boolean hasRSBandwidth()
Description copied from interface: MediaComponentDescription
Returns true if the RS-Bandwidth AVP is present in the message.

Specified by:
hasRSBandwidth in interface MediaComponentDescription

hasReservationClass

public boolean hasReservationClass()
Description copied from interface: MediaComponentDescription
Returns true if the Reservation-Class AVP is present in the message.

Specified by:
hasReservationClass in interface MediaComponentDescription

hasReservationPriority

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

Specified by:
hasReservationPriority in interface MediaComponentDescription

hasTransportClass

public boolean hasTransportClass()
Description copied from interface: MediaComponentDescription
Returns true if the Transport-Class AVP is present in the message.

Specified by:
hasTransportClass in interface MediaComponentDescription

setMediaComponentNumber

public void setMediaComponentNumber(long mediaComponentNumber)
Description copied from interface: MediaComponentDescription
Sets the value of the Media-Component-Number AVP, of type Unsigned32.

Specified by:
setMediaComponentNumber in interface MediaComponentDescription

setMediaSubComponents

public void setMediaSubComponents(MediaSubComponent[] mediaSubComponents)
Description copied from interface: MediaComponentDescription
Sets the value of the Media-Sub-Component AVP, of type Grouped.

Specified by:
setMediaSubComponents in interface MediaComponentDescription

setMediaSubComponent

public void setMediaSubComponent(MediaSubComponent mediaSubComponent)
Description copied from interface: MediaComponentDescription
Sets the value of the Media-Sub-Component AVP, of type Grouped.

Specified by:
setMediaSubComponent in interface MediaComponentDescription

setAFApplicationIdentifier

public void setAFApplicationIdentifier(byte[] AFApplicationIdentifier)
Description copied from interface: MediaComponentDescription
Sets the value of the AF-Application-Identifier AVP, of type OctetString.

Specified by:
setAFApplicationIdentifier in interface MediaComponentDescription

setMediaType

public void setMediaType(MediaType mediaType)
Description copied from interface: MediaComponentDescription
Sets the value of the Media-Type AVP, of type Unsigned32.

Specified by:
setMediaType in interface MediaComponentDescription

setMaxRequestedBandwidthUL

public void setMaxRequestedBandwidthUL(long maxRequestedBandwidthUL)
Description copied from interface: MediaComponentDescription
Sets the value of the Max-Requested-Bandwidth-UL AVP, of type Unsigned32.

Specified by:
setMaxRequestedBandwidthUL in interface MediaComponentDescription

setMaxRequestedBandwidthDL

public void setMaxRequestedBandwidthDL(long maxRequestedBandwidthDL)
Description copied from interface: MediaComponentDescription
Sets the value of the Max-Requested-Bandwidth-DL AVP, of type Unsigned32.

Specified by:
setMaxRequestedBandwidthDL in interface MediaComponentDescription

setFlowStatus

public void setFlowStatus(FlowStatus flowStatus)
Description copied from interface: MediaComponentDescription
Sets the value of the Flow-Status AVP, of type Unsigned32.

Specified by:
setFlowStatus in interface MediaComponentDescription

setRSBandwidth

public void setRSBandwidth(long RSBandwidth)
Description copied from interface: MediaComponentDescription
Sets the value of the RS-Bandwidth AVP, of type Unsigned32.

Specified by:
setRSBandwidth in interface MediaComponentDescription

setRRBandwidth

public void setRRBandwidth(long RRBandwidth)
Description copied from interface: MediaComponentDescription
Sets the value of the RR-Bandwidth AVP, of type Unsigned32.

Specified by:
setRRBandwidth in interface MediaComponentDescription

setReservationClass

public void setReservationClass(long reservationClass)
Description copied from interface: MediaComponentDescription
Sets the value of the Reservation-Class AVP, of type Unsigned32.

Specified by:
setReservationClass in interface MediaComponentDescription

setReservationPriority

public void setReservationPriority(ReservationPriority reservationPriority)
Description copied from interface: MediaComponentDescription
Sets the value of the Reservation-Priority AVP, of type Unsigned32.

Specified by:
setReservationPriority in interface MediaComponentDescription

setTransportClass

public void setTransportClass(long transportClass)
Description copied from interface: MediaComponentDescription
Sets the value of the Transport-Class AVP, of type Unsigned32.

Specified by:
setTransportClass in interface MediaComponentDescription

setCodecData

public void setCodecData(byte[][] codecsData)
Description copied from interface: MediaComponentDescription
Sets the value of the Codec-Data AVP, of type OctetString.

Specified by:
setCodecData in interface MediaComponentDescription

setCodecData

public void setCodecData(byte[] codecData)
Description copied from interface: MediaComponentDescription
Sets the value of the Codec-Data AVP, of type OctetString.

Specified by:
setCodecData in interface MediaComponentDescription

setMediaAuthorizationContextId

public void setMediaAuthorizationContextId(java.lang.String[] mediaAuthorizationContextIds)
Description copied from interface: MediaComponentDescription
Sets the value of the Media-Authorization-Context-Id AVP, of type UTF8String.

Specified by:
setMediaAuthorizationContextId in interface MediaComponentDescription

setMediaAuthorizationContextId

public void setMediaAuthorizationContextId(java.lang.String mediaAuthorizationContextId)
Description copied from interface: MediaComponentDescription
Sets the value of the Media-Authorization-Context-Id, of type UTF8String.

Specified by:
setMediaAuthorizationContextId in interface MediaComponentDescription


Copyright © 2012. All Rights Reserved.