Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.0

E18767-01


com.bea.wcp.diameter
Class AvpList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<Avp>
          extended by com.bea.wcp.diameter.AvpList

All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<Avp>, java.util.Collection<Avp>, java.util.List<Avp>

public final class AvpList
extends java.util.AbstractList<Avp>
implements java.io.Serializable

An AvpList is used to represent the AVPs of a Diameter message or the AVPs contained within a grouped AVP.

See Also:
Serialized Form

Field Summary

 

Fields inherited from class java.util.AbstractList
modCount

 

Constructor Summary
AvpList()
          Creates a new empty AvpList.
AvpList(Avp[] avps)
           

 

Method Summary
 void add(Attribute attr, java.lang.Object value)
          Adds a new AVP to the list of AVPs.
 void add(int i, Avp avp)
           
 void add(java.lang.String name, java.lang.Object value)
          Adds a new AVP by name to the list of AVPs.
 XmlBuffer appendXml(XmlBuffer xb)
           
 void decode(java.nio.ByteBuffer bb)
           
 java.nio.ByteBuffer encode(java.nio.ByteBuffer bb)
           
 Avp get(Attribute attr)
          Returns the first AVP for the specified Attribute, or null if none.
 Avp get(int i)
           
 Avp get(java.lang.String name)
          Returns the first AVP for the specific attribute name, or null if none
 Avp getLast(Attribute attr)
          Returns the last AVP for the specified Attribute, or null if none.
 Avp remove(int i)
           
 Avp set(int i, Avp avp)
           
 int size()
           
 java.lang.String toString()
           

 

Methods inherited from class java.util.AbstractList
add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, subList

 

Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray

 

Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait

 

Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray

 

Constructor Detail

AvpList

public AvpList()
Creates a new empty AvpList.

AvpList

public AvpList(Avp[] avps)

Method Detail

decode

public void decode(java.nio.ByteBuffer bb)

encode

public java.nio.ByteBuffer encode(java.nio.ByteBuffer bb)

get

public Avp get(Attribute attr)
Returns the first AVP for the specified Attribute, or null if none.
Parameters:
attr - the Attribute to search for
Returns:
the AVP with the attribute, or null if none

get

public Avp get(java.lang.String name)
Returns the first AVP for the specific attribute name, or null if none
Parameters:
name - the attribute name
Returns:
the AVP with the attribute, or null if none

getLast

public Avp getLast(Attribute attr)
Returns the last AVP for the specified Attribute, or null if none.
Parameters:
attr - the Attribute to search for
Returns:
the last AVP with the Attribute, or null if none

add

public void add(Attribute attr,
                java.lang.Object value)
Adds a new AVP to the list of AVPs.
Parameters:
attr - the AVP attribute
value - the AVP value
See Also:
Avp.getValue()

add

public void add(java.lang.String name,
                java.lang.Object value)
Adds a new AVP by name to the list of AVPs.
Parameters:
name - the AVP attribute name
value - the AVP value

get

public Avp get(int i)
Specified by:
get in interface java.util.List<Avp>
Specified by:
get in class java.util.AbstractList<Avp>

size

public int size()
Specified by:
size in interface java.util.Collection<Avp>
Specified by:
size in interface java.util.List<Avp>
Specified by:
size in class java.util.AbstractCollection<Avp>

set

public Avp set(int i,
               Avp avp)
Specified by:
set in interface java.util.List<Avp>
Overrides:
set in class java.util.AbstractList<Avp>

add

public void add(int i,
                Avp avp)
Specified by:
add in interface java.util.List<Avp>
Overrides:
add in class java.util.AbstractList<Avp>

remove

public Avp remove(int i)
Specified by:
remove in interface java.util.List<Avp>
Overrides:
remove in class java.util.AbstractList<Avp>

toString

public java.lang.String toString()
Overrides:
toString in class java.util.AbstractCollection<Avp>

appendXml

public XmlBuffer appendXml(XmlBuffer xb)

Skip navigation links

Oracle Communications Converged Application Server Java API Reference
5.0

E18767-01


Copyright © 2005, 2010, Oracle and/or its affiliates. All rights reserved.