NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

gov.nist.javax.sip.header
Class NameMap

java.lang.Object
  extended by gov.nist.javax.sip.header.NameMap
All Implemented Interfaces:
gov.nist.core.PackageNames, SIPHeaderNames

public class NameMap
extends Object
implements SIPHeaderNames, gov.nist.core.PackageNames

A mapping class that returns the SIPHeader for a given header name. Add new classes to this map if you are implementing new header types if you want some of the introspection based methods to work.

Since:
1.1
Version:
1.2 $Revision: 1.11 $ $Date: 2009/07/17 18:57:32 $

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, JOIN, MAX_FORWARDS, MIME_VERSION, MIN_EXPIRES, MIN_SE, ORGANIZATION, PRIORITY, PROXY_AUTHENTICATE, PROXY_AUTHORIZATION, PROXY_REQUIRE, RACK, REASON, RECORD_ROUTE, REFERRED_BY, REPLACES, REPLY_TO, REQUIRE, RETRY_AFTER, ROUTE, RSEQ, SERVER, SESSION_EXPIRES, SIP_ETAG, SIP_IF_MATCH, SUBJECT, SUBSCRIPTION_STATE, SUPPORTED, TIMESTAMP, TO, UNSUPPORTED, USER_AGENT, VIA, WARNING, WWW_AUTHENTICATE
 
Fields inherited from interface gov.nist.core.PackageNames
CORE_PACKAGE, JAIN_HEADER_PACKAGE, JAIN_PACKAGE, MESSAGE_PACKAGE, NET_PACKAGE, PARSER_PACKAGE, SDP_PACKAGE, SDP_PARSER_PACKAGE, SIP_PACKAGE, SIPHEADERS_PACKAGE, STACK_PACKAGE
 
Constructor Summary
NameMap()
           
 
Method Summary
static void addExtensionHeader(String headerName, String className)
          add an extension header to this map.
static Class getClassFromName(String headerName)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NameMap

public NameMap()
Method Detail

getClassFromName

public static Class getClassFromName(String headerName)

addExtensionHeader

public static void addExtensionHeader(String headerName,
                                      String className)
add an extension header to this map.

Parameters:
headerName - is the extension header name.
className - is the fully qualified class name that implements the header (does not have to belong to the nist-sip package). Use this if you want to use the introspection-based methods.

NIST-SIP: The Reference Implementation for JAIN-SIP 1.2

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