|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectgov.nist.core.GenericObject
gov.nist.javax.sip.header.SIPObject
gov.nist.javax.sip.header.SIPHeader
gov.nist.javax.sip.header.SIPHeaderList
public class SIPHeaderList
This is the root class for all lists of SIP headers. It imbeds a SIPObjectList object and extends SIPHeader Lists of ContactSIPObjects etc. derive from this class. This supports homogeneous lists (all elements in the list are of the same class). We use this for building type homogeneous lists of SIPObjects that appear in SIPHeaders
| フィールドの概要 |
|---|
| インタフェース gov.nist.javax.sip.header.SIPHeaderNames から継承されたフィールド |
|---|
ACCEPT, ACCEPT_ENCODING, ACCEPT_LANGUAGE, ALERT_INFO, ALLOW, ALLOW_EVENTS, AUTHENTICATION_INFO, AUTHORIZATION, CALL_ID, CALL_INFO, CONTACT, CONTENT_DISPOSITION, CONTENT_ENCODING, CONTENT_LANGUAGE, CONTENT_LENGTH, CONTENT_TYPE, CSEQ, DATE, ERROR_INFO, EVENT, EXPIRES, FROM, IN_REPLY_TO, MAX_FORWARDS, MIME_VERSION, MIN_EXPIRES, ORGANIZATION, PRIORITY, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, PROXY_REQUIRE, RACK, REASON, RECORD_ROUTE, REPLY_TO, REQUIRE, RETRY_AFTER, ROUTE, RSEQ, SERVER, SUBJECT, SUBSCRIPTION_STATE, SUPPORTED, TIMESTAMP, TO, UNSUPPORTED, USER_AGENT, VIA, WARNING, WWW_AUTHENTICATE |
| コンストラクタの概要 | |
|---|---|
SIPHeaderList(java.lang.Class objclass,
java.lang.String hname)
Constructor |
|
SIPHeaderList(SIPObjectList hl,
java.lang.String hname)
Constructor |
|
SIPHeaderList(java.lang.String hName)
Constructor |
|
SIPHeaderList(java.lang.String classname,
java.lang.String hname)
Constructor |
|
| メソッドの概要 | |
|---|---|
void |
add(int position,
java.lang.Object headerToAdd)
Add an element at a specified position. |
void |
add(int index,
SIPHeader sipHeader)
insert at a location. |
boolean |
add(java.lang.Object objectToAdd)
Concatenate the list of stuff that we are keeping around and also the text corresponding to these structures (that we parsed). |
void |
add(SIPHeader sipheader,
boolean top)
Add to this list. |
boolean |
addAll(java.util.Collection collection)
Add a collection of headers. |
boolean |
addAll(int index,
java.util.Collection collection)
Add all the elements of this collection. |
void |
addFirst(java.lang.Object obj)
Concatenate the list of stuff that we are keeping around and also the text corresponding to these structures (that we parsed). |
void |
clear()
|
java.lang.Object |
clone()
make a clone of this header list. |
void |
concatenate(SIPHeaderList other)
Concatenate two compatible lists. |
void |
concatenate(SIPHeaderList other,
boolean top)
Concatenate two compatible lists. |
boolean |
contains(java.lang.Object header)
|
boolean |
containsAll(java.util.Collection collection)
Check if the list contains all the headers in this collection. |
java.lang.String |
debugDump()
convert to a string representation |
java.lang.String |
debugDump(int indentation)
convert to a string representation (for printing). |
java.lang.String |
encode()
Encode a list of sip headers. |
boolean |
equals(java.lang.Object other)
Equality comparison operator. |
SIPObject |
first()
Initialize the iterator for a loop |
java.lang.Object |
get(int index)
Get the object at the specified location. |
SIPHeader |
getFirst()
Get the first element of this list. |
SIPObjectList |
getHeaderList()
Get the imbedded linked list. |
java.util.LinkedList |
getHeadersAsEncodedStrings()
Return a list of encoded strings (one for each sipheader). |
SIPHeader |
getLast()
Get the last element of this list. |
java.lang.Class |
getMyClass()
Get the class for the headers of this list. |
int |
indexOf(GenericObject gobj)
index of an element. |
int |
indexOf(java.lang.Object obj)
Return the index of a given object. |
boolean |
isEmpty()
Empty check |
boolean |
isHeaderList()
Return true if this is a header list (overrides the base class method which returns false). |
java.util.Iterator |
iterator()
Return the iterator to the imbedded list. |
int |
lastIndexOf(java.lang.Object obj)
Get the last index of the given object. |
java.util.ListIterator |
listIterator()
Get an initialized iterator for my imbedded list |
java.util.ListIterator |
listIterator(int position)
Get the list iterator for a given position. |
boolean |
match(java.lang.Object template)
Template match against a template. |
void |
merge(java.lang.Object mergeObject)
Merge this with a given template. |
SIPObject |
next()
Get the next element in the list . |
SIPObject |
next(java.util.ListIterator iterator)
Get the next item for an iterative scan of the list |
java.lang.Object |
remove(int index)
Remove the object at a given index. |
boolean |
remove(java.lang.Object obj)
Remove the given object. |
boolean |
remove(SIPHeader obj)
Remove a sip header from this list of sip headers. |
void |
removeAll(java.lang.Class cl)
Remove all occurances of a given class of SIPObject from the SIP object list. |
boolean |
removeAll(java.util.Collection collection)
Remove all the elements. |
void |
removeFirst()
Remove the first element of this list. |
void |
removeLast()
Remove the last element of this list. |
boolean |
retainAll(java.util.Collection collection)
|
java.lang.Object |
set(int index,
java.lang.Object obj)
|
int |
size()
Get the number of headers in the list. |
java.util.List |
subList(int index1,
int index2)
|
java.lang.Object[] |
toArray()
Array conversion. |
java.lang.Object[] |
toArray(java.lang.Object[] obj)
|
java.lang.String |
toString()
Encode this to a string representation. |
| クラス gov.nist.javax.sip.header.SIPHeader から継承されたメソッド |
|---|
getHeaderName, getHeaderValue, getName, getValue, setHeaderName |
| クラス gov.nist.javax.sip.header.SIPObject から継承されたメソッド |
|---|
dbgPrint, replace, replace, replace, replace |
| クラス gov.nist.core.GenericObject から継承されたメソッド |
|---|
getClassFromName, getMatcher, isMySubclass, setMatcher |
| クラス java.lang.Object から継承されたメソッド |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| インタフェース java.util.List から継承されたメソッド |
|---|
hashCode |
| コンストラクタの詳細 |
|---|
public SIPHeaderList(SIPObjectList hl,
java.lang.String hname)
hl - SIPObjectList to sethname - String to setpublic SIPHeaderList(java.lang.String hName)
hName - String to set
public SIPHeaderList(java.lang.Class objclass,
java.lang.String hname)
objclass - Class to sethname - String to set
public SIPHeaderList(java.lang.String classname,
java.lang.String hname)
classname - String to sethname - String to set| メソッドの詳細 |
|---|
public boolean add(java.lang.Object objectToAdd)
java.util.Collection 内の addjava.util.List 内の addobjectToAdd - GenericObject to setpublic void addFirst(java.lang.Object obj)
obj - Genericobject to set
public void add(SIPHeader sipheader,
boolean top)
sipheader - SIPHeader to add.top - is true if we want to add to the top of the list.
public void concatenate(SIPHeaderList other,
boolean top)
throws java.lang.IllegalArgumentException
other - SIPHeaderList to settop - boolean to set
java.lang.IllegalArgumentException - if the two lists are not compatible
public void concatenate(SIPHeaderList other)
throws java.lang.IllegalArgumentException
other - SIPHeaderList
java.lang.IllegalArgumentException - if the two lists are not compatiblepublic java.lang.String encode()
SIPHeader 内の encodepublic java.util.LinkedList getHeadersAsEncodedStrings()
public SIPObject first()
public SIPHeader getFirst()
public SIPHeader getLast()
public java.lang.Class getMyClass()
public boolean isEmpty()
java.util.Collection 内の isEmptyjava.util.List 内の isEmptypublic java.util.ListIterator listIterator()
java.util.List 内の listIteratorpublic SIPObjectList getHeaderList()
public java.util.ListIterator listIterator(int position)
java.util.List 内の listIteratorposition - position for the list iterator to return
public SIPObject next()
public SIPObject next(java.util.ListIterator iterator)
iterator - ListIterator
public void removeAll(java.lang.Class cl)
cl - Class to setpublic void removeFirst()
public void removeLast()
public boolean remove(SIPHeader obj)
obj - SIPHeader to set
public java.lang.String debugDump(int indentation)
SIPObject 内の debugDumpindentation - int to set
public java.lang.String debugDump()
SIPObject 内の debugDumppublic java.lang.Object[] toArray()
java.util.Collection 内の toArrayjava.util.List 内の toArraypublic int indexOf(GenericObject gobj)
public void add(int index,
SIPHeader sipHeader)
throws java.lang.IndexOutOfBoundsException
index - location where to add the sipHeader.sipHeader - SIPHeader structure to add.
java.lang.IndexOutOfBoundsExceptionpublic boolean equals(java.lang.Object other)
java.util.Collection 内の equalsjava.util.List 内の equalsjavax.sip.header.Header 内の equalsSIPObject 内の equalsother - the other object to compare with. true is returned
iff the classes match and list of headers herein is equal to
the list of headers in the target (order of the headers is
not important).
public boolean match(java.lang.Object template)
SIPObject 内の matchtemplate - the match pattern to test against. The match object
has to be of the same type (class). Primitive types
and non-sip fields that are non null are matched for equality.
Null in any field matches anything. Some book-keeping fields
are ignored when making the comparison.public void merge(java.lang.Object mergeObject)
SIPObject 内の mergemergeObject - the template to merge with.public java.lang.Object clone()
javax.sip.header.Header 内の cloneSIPObject 内の clonepublic int size()
java.util.Collection 内の sizejava.util.List 内の sizepublic boolean isHeaderList()
SIPHeader 内の isHeaderListpublic java.lang.String toString()
javax.sip.header.Header 内の toStringSIPObject 内の toString
public void add(int position,
java.lang.Object headerToAdd)
java.util.List 内の addheaderToAdd - -- the header to add.public boolean addAll(java.util.Collection collection)
java.util.Collection 内の addAlljava.util.List 内の addAllcollection - -- a collection containing the headers to add.
public boolean addAll(int index,
java.util.Collection collection)
java.util.List 内の addAllpublic void clear()
java.util.Collection 内の clearjava.util.List 内の clearpublic boolean contains(java.lang.Object header)
java.util.Collection 内の containsjava.util.List 内の containspublic boolean containsAll(java.util.Collection collection)
java.util.Collection 内の containsAlljava.util.List 内の containsAllcollection - -- the collection of headers to test against.public java.lang.Object get(int index)
java.util.List 内の getindex - -- location from which to get the object.public int indexOf(java.lang.Object obj)
java.util.List 内の indexOfobj - -- object whose index to compute.public java.util.Iterator iterator()
java.lang.Iterable 内の iteratorjava.util.Collection 内の iteratorjava.util.List 内の iteratorpublic int lastIndexOf(java.lang.Object obj)
java.util.List 内の lastIndexOfobj - -- object whose index to find.public boolean remove(java.lang.Object obj)
java.util.Collection 内の removejava.util.List 内の removeobj - -- object to remove.public java.lang.Object remove(int index)
java.util.List 内の removeindex - -- index at which to remove the objectpublic boolean removeAll(java.util.Collection collection)
java.util.Collection 内の removeAlljava.util.List 内の removeAllpublic boolean retainAll(java.util.Collection collection)
java.util.Collection 内の retainAlljava.util.List 内の retainAll
public java.lang.Object set(int index,
java.lang.Object obj)
java.util.List 内の set
public java.util.List subList(int index1,
int index2)
java.util.List 内の subListpublic java.lang.Object[] toArray(java.lang.Object[] obj)
java.util.Collection 内の toArrayjava.util.List 内の toArray
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||