|
Oracle Corp. | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.util.AbstractCollection
java.util.AbstractList
com.bea.wcp.diameter.AvpList
An AvpList is used to represent the AVPs of a Diameter message or the AVPs contained within a grouped AVP.
| 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 |
public AvpList()
public AvpList(Avp[] avps)
| Method Detail |
public void add(Attribute attr,
java.lang.Object value)
attr - the AVP attributevalue - the AVP valueAvp.getValue()
public void add(int i,
Avp avp)
public void add(java.lang.String name,
java.lang.Object value)
name - the AVP attribute namevalue - the AVP valuepublic void decode(java.nio.ByteBuffer bb)
public java.nio.ByteBuffer encode(java.nio.ByteBuffer bb)
public Avp get(Attribute attr)
attr - the Attribute to search for
public Avp get(int i)
get in interface java.util.Listpublic Avp get(java.lang.String name)
name - the attribute name
public Avp getLast(Attribute attr)
attr - the Attribute to search for
public Avp remove(int i)
remove in interface java.util.List
public Avp set(int i,
Avp avp)
public int size()
size in interface java.util.Listpublic java.lang.String toString()
|
Documentation is available at http://e-docs.bea.com/wlcp/wlss40/ Copyright 2008 Oracle Corp. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||