Oracle Corp.

Oracle WebLogic Communications Server 10.1 API Reference


com.bea.wcp.diameter
Class AvpList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended bycom.bea.wcp.diameter.AvpList
All Implemented Interfaces:
java.util.Collection, java.lang.Iterable, java.util.List, java.io.Serializable

public final class AvpList
extends java.util.AbstractList
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
Copyright © 2008 Oracle Corp. All Rights Reserved.

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.
 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, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, 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

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(int i,
                Avp avp)

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

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(int i)
Specified by:
get in interface java.util.List

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

remove

public Avp remove(int i)
Specified by:
remove in interface java.util.List

set

public Avp set(int i,
               Avp avp)

size

public int size()
Specified by:
size in interface java.util.List

toString

public java.lang.String toString()

Documentation is available at
http://e-docs.bea.com/wlcp/wlss40/
Copyright 2008 Oracle Corp.