|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<Avp>
com.bea.wcp.diameter.AvpList
public final class 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, Object value)Adds a new AVP to the list of AVPs. |
void |
add(int i, Avp avp) |
void |
add(String name, Object value)Adds a new AVP by name to the list of AVPs. |
XmlBuffer |
appendXml(XmlBuffer xb) |
void |
decode(ByteBuffer bb) |
ByteBuffer |
encode(ByteBuffer bb) |
Avp |
get(Attribute attr)Returns the first AVP for the specified Attribute, or null if none. |
Avp |
get(int i) |
Avp |
get(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() |
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 |
|---|
public AvpList()
public AvpList(Avp[] avps)
| Method Detail |
|---|
public void decode(ByteBuffer bb)
public ByteBuffer encode(ByteBuffer bb)
public Avp get(Attribute attr)
attr - the Attribute to search forpublic Avp get(String name)
name - the attribute namepublic Avp getLast(Attribute attr)
attr - the Attribute to search for
public void add(Attribute attr,
Object value)
attr - the AVP attributevalue - the AVP valueAvp.getValue()
public void add(String name,
Object value)
name - the AVP attribute namevalue - the AVP valuepublic Avp get(int i)
get in interface List<Avp>get in class AbstractList<Avp>public int size()
size in interface Collection<Avp>size in interface List<Avp>size in class AbstractCollection<Avp>
public Avp set(int i,
Avp avp)
set in interface List<Avp>set in class AbstractList<Avp>
public void add(int i,
Avp avp)
add in interface List<Avp>add in class AbstractList<Avp>public Avp remove(int i)
remove in interface List<Avp>remove in class AbstractList<Avp>public String toString()
toString in class AbstractCollection<Avp>public XmlBuffer appendXml(XmlBuffer xb)
|
Oracle Communications Converged Application Server Java API Reference 5.1 E36938-01 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright © 2012 Oracle Corporation. All Rights Reserved.