NIST SIP Parser and Stack (v1.2) API

gov.nist.javax.sip.header
Class ContactList

java.lang.Object
  extended bygov.nist.core.GenericObject
      extended bygov.nist.javax.sip.header.SIPObject
          extended bygov.nist.javax.sip.header.SIPHeader
              extended bygov.nist.javax.sip.header.SIPHeaderList
                  extended bygov.nist.javax.sip.header.ContactList
All Implemented Interfaces:
Cloneable, Collection, Header, List, Serializable, SIPHeaderNames

public class ContactList
extends SIPHeaderList

List of contact headers.ContactLists are also maintained in a hashtable for quick lookup.

Author:
M. Ranganathan
This code is in the public domain.
See Also:
Serialized Form

Field Summary
 
Fields inherited from interface 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
 
Constructor Summary
ContactList()
          Constructor.
ContactList(SIPObjectList hl)
          constructor
 
Method Summary
 Object clone()
          make a clone of this contact list.
 Contact[] getContacts()
          Get an array of contact addresses.
 
Methods inherited from class gov.nist.javax.sip.header.SIPHeaderList
add, add, add, add, addAll, addAll, addFirst, clear, concatenate, concatenate, contains, containsAll, debugDump, debugDump, encode, equals, first, get, getFirst, getHeaderList, getHeadersAsEncodedStrings, getLast, getMyClass, indexOf, indexOf, isEmpty, isHeaderList, iterator, lastIndexOf, listIterator, listIterator, match, merge, next, next, remove, remove, remove, removeAll, removeAll, removeFirst, removeLast, retainAll, set, size, subList, toArray, toArray, toString
 
Methods inherited from class gov.nist.javax.sip.header.SIPHeader
getHeaderName, getHeaderValue, getName, getValue, setHeaderName
 
Methods inherited from class gov.nist.javax.sip.header.SIPObject
dbgPrint, match, replace, replace, replace, replace
 
Methods inherited from class gov.nist.core.GenericObject
getClassFromName, getMatcher, isMySubclass, setMatcher
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
hashCode
 

Constructor Detail

ContactList

public ContactList(SIPObjectList hl)
constructor

Parameters:
hl - SIPObjectList

ContactList

public ContactList()
Constructor.

Method Detail

clone

public Object clone()
make a clone of this contact list.

Specified by:
clone in interface Header
Overrides:
clone in class SIPHeaderList
Returns:
Object cloned list.

getContacts

public Contact[] getContacts()
Get an array of contact addresses.

Returns:
array of contacts.

NIST SIP Parser and Stack (v1.2) API

A product of the NIST/ITL Advanced Networking Technologies Division.
See conditions of use.
Get the latest distribution.
Submit a bug report or feature request.