Java Doc for Header.java in  » 6.0-JDK-Modules » j2me » gov » nist » siplite » header » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » 6.0 JDK Modules » j2me » gov.nist.siplite.header 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   gov.nist.core.GenericObject
      gov.nist.siplite.header.Header

All known Subclasses:   gov.nist.siplite.header.ParametersHeader,  gov.nist.siplite.header.ParameterLessHeader,  gov.nist.siplite.header.HeaderList,
Header
abstract public class Header extends GenericObject (Code)
Generic SipHeader class All the Headers inherit of this class
version:
   JAIN-SIP-1.1
version:
   This code is in the public domain.


Field Summary
final public static  StringACCEPT
     Constant ACCEPT field.
final public static  StringACCEPT_CONTACT
     Constant ACCEPT_CONTACT field.
final public static  StringACCEPT_ENCODING
     Constant ACCEPT_ENCODING field.
final public static  StringACCEPT_LANGUAGE
     Constant ACCEPT_LANGUAGE field.
final public static  StringALERT_INFO
     Constant ALERT_INFO field.
final public static  StringALLOW
     Constant ALLOW field.
final public static  StringALLOW_EVENTS
     Constant ALLOW_EVENTS field.
final public static  StringAUTHENTICATION_INFO
     Constant AUTHENTICATION_INFO field.
final public static  StringAUTHORIZATION
     Constant AUTHORIZATION field.
final public static  StringCALL_ID
     Constant CALL_ID field.
final public static  StringCALL_INFO
     Constant CALL_INFO field.
final public static  StringCONTACT
     Constant CONTACT field.
final public static  StringCONTENT_DISPOSITION
     Constant CONTENT_DISPOSITION field.
final public static  StringCONTENT_ENCODING
     Constant CONTENT_ENCODING field.
final public static  StringCONTENT_LANGUAGE
     Constant CONTENT_LANGUAGE field.
final public static  StringCONTENT_LENGTH
     Constant CONTENT_LENGTH field.
final public static  StringCONTENT_TYPE
     Constant CONTENT_TYP field.
final public static  StringCSEQ
     Constant CSEQ field.
final public static  StringDATE
     Constant DATE field.
final public static  StringENCRYPTION
     Constant ENCRYPTION field.
final public static  StringERROR_INFO
     Constant ERROR_INFO field.
final public static  StringEVENT
     Constant EVENT field.
final public static  StringEXPIRES
     Constant EXPIRES field.
final public static  StringEXTENSION
     Constant EXTENSION field.
final public static  StringFROM
     Constant FROM field.
final public static  StringHIDE
     Constant HIDE field.
final public static  StringIN_REPLY_TO
     Constant IN_REPLY_TO field.
final public static  StringMAX_FORWARDS
     Constant MAX_FORWARDS field.
final public static  StringMIME_VERSION
     Constant MIME_VERSION field.
final public static  StringMIN_EXPIRES
     Constant MIN_EXPIRES field.
final public static  StringORGANIZATION
     Constant ORGANIZATION field.
final public static  StringPRIORITY
     Constant PRIORITY field.
final public static  StringPROXY_AUTHENTICATE
     Constant PROXY_AUTHENTICATE field.
final public static  StringPROXY_AUTHORIZATION
     Constant PROXY_AUTHORIZATION field.
final public static  StringPROXY_REQUIRE
     Constant PROXY_REQUIRE field.
final public static  StringRACK
     Constant RAck field (RFC 3262, p.
final public static  StringRECORD_ROUTE
     Constant RECORD_ROUTE field.
final public static  StringREFER_TO
     Constant Refer-To field (RFC 3515, p.
final public static  StringREQUIRE
     Constant REQUIRE field.
final public static  StringRESPONSE_KEY
     Constant RESPONSE_KEY field.
final public static  StringRETRY_AFTER
     Constant RETRY_AFTER field.
final public static  StringROUTE
     Constant ROUTE field.
final public static  StringRSEQ
     Constant RSEQ field (RFC 3262, p.
final public static  StringSERVER
     Constant SERVER field.
final public static  StringSIP_ETAG
     Constant SIP_ETAG field (RFC 3903, p.
final public static  StringSIP_IF_MATCH
     Constant SIP_IF_MATCH field (RFC 3903, p.
final public static  StringSUBJECT
     Constant SUBJECT field.
final public static  StringSUBSCRIPTION_STATE
     Constant SUBSCRIPTION_STATE field.
final public static  StringSUPPORTED
     Constant SUPPORTED field.
final public static  StringTIMESTAMP
     Constant TIMESTAMP field.
final public static  StringTO
     Constant TO field.
final public static  StringUNSUPPORTED
     Constant UNSUPPORTED field.
final public static  StringUSER_AGENT
     Constant USER_AGENT field.
final public static  StringVIA
     Constant VIA field.
final public static  StringWARNING
     Constant WARNING field.
final public static  StringWARN_AGENT
     Constant WARN_AGENT field.
final public static  StringWWW_AUTHENTICATE
     Constant WWW_AUTHENTICATE field.
public  StringheaderName
     Name of the header.
public  StringheaderValue
     Value of the header.
final public static  String[]parameterLessHeaders
     Array of the headers that can not have any parameters.

Constructor Summary
public  Header()
     Default constructor.
public  Header(String headerName)
     Constructor given the name.
public  Header(String headerName, String headerValue)
     Constructor given the name and value.

Method Summary
public  Objectclone()
     A place holder -- this should be overriden with an actual clone method.
public  Stringencode()
     Encodes the header into a String.
abstract protected  StringencodeBody()
     Gets the stuff that follows the headerName.
public static  StringencodeCalendar(Calendar date)
     A utility for encoding dates.
public  StringgetHeaderName()
     Gets the header name.
public  StringgetHeaderValue()
     Gets the header value.
public  StringgetName()
     Alias for getHeaderName.
abstract public  NameValueListgetParameters()
     Gets the parameters for the header as a nameValue list.
public static  bytegetStringHash(String s)
     Calculates a signle-byte hash code of the string.
abstract public  ObjectgetValue()
     Gets the value for the header as opaque object (returned value will depend upon the header.
public static  booleanisAuthorization(String name)
     Checks if a header with the given name is an Authorization or Authentication header.
public static  booleanisParameterLess(String name)
     Checks if the specified header can have some parameters.
public static  booleanisReliableTagPresent(String strOptionTags)
     Search for the reliable tag, "100rel" in a "Require" Header value.
public  voidsetHeaderName(String name)
     Sets the header name field.
public  voidsetHeaderValue(String value)
     Sets the header value field.
public  StringtoString()
     Returns the encoded text contents.

Field Detail
ACCEPT
final public static String ACCEPT(Code)
Constant ACCEPT field.



ACCEPT_CONTACT
final public static String ACCEPT_CONTACT(Code)
Constant ACCEPT_CONTACT field.



ACCEPT_ENCODING
final public static String ACCEPT_ENCODING(Code)
Constant ACCEPT_ENCODING field.



ACCEPT_LANGUAGE
final public static String ACCEPT_LANGUAGE(Code)
Constant ACCEPT_LANGUAGE field.



ALERT_INFO
final public static String ALERT_INFO(Code)
Constant ALERT_INFO field.



ALLOW
final public static String ALLOW(Code)
Constant ALLOW field.



ALLOW_EVENTS
final public static String ALLOW_EVENTS(Code)
Constant ALLOW_EVENTS field.



AUTHENTICATION_INFO
final public static String AUTHENTICATION_INFO(Code)
Constant AUTHENTICATION_INFO field.



AUTHORIZATION
final public static String AUTHORIZATION(Code)
Constant AUTHORIZATION field.



CALL_ID
final public static String CALL_ID(Code)
Constant CALL_ID field.



CALL_INFO
final public static String CALL_INFO(Code)
Constant CALL_INFO field.



CONTACT
final public static String CONTACT(Code)
Constant CONTACT field.



CONTENT_DISPOSITION
final public static String CONTENT_DISPOSITION(Code)
Constant CONTENT_DISPOSITION field.



CONTENT_ENCODING
final public static String CONTENT_ENCODING(Code)
Constant CONTENT_ENCODING field.



CONTENT_LANGUAGE
final public static String CONTENT_LANGUAGE(Code)
Constant CONTENT_LANGUAGE field.



CONTENT_LENGTH
final public static String CONTENT_LENGTH(Code)
Constant CONTENT_LENGTH field.



CONTENT_TYPE
final public static String CONTENT_TYPE(Code)
Constant CONTENT_TYP field.



CSEQ
final public static String CSEQ(Code)
Constant CSEQ field.



DATE
final public static String DATE(Code)
Constant DATE field.



ENCRYPTION
final public static String ENCRYPTION(Code)
Constant ENCRYPTION field.



ERROR_INFO
final public static String ERROR_INFO(Code)
Constant ERROR_INFO field.



EVENT
final public static String EVENT(Code)
Constant EVENT field.



EXPIRES
final public static String EXPIRES(Code)
Constant EXPIRES field.



EXTENSION
final public static String EXTENSION(Code)
Constant EXTENSION field.



FROM
final public static String FROM(Code)
Constant FROM field.



HIDE
final public static String HIDE(Code)
Constant HIDE field.



IN_REPLY_TO
final public static String IN_REPLY_TO(Code)
Constant IN_REPLY_TO field.



MAX_FORWARDS
final public static String MAX_FORWARDS(Code)
Constant MAX_FORWARDS field.



MIME_VERSION
final public static String MIME_VERSION(Code)
Constant MIME_VERSION field.



MIN_EXPIRES
final public static String MIN_EXPIRES(Code)
Constant MIN_EXPIRES field.



ORGANIZATION
final public static String ORGANIZATION(Code)
Constant ORGANIZATION field.



PRIORITY
final public static String PRIORITY(Code)
Constant PRIORITY field.



PROXY_AUTHENTICATE
final public static String PROXY_AUTHENTICATE(Code)
Constant PROXY_AUTHENTICATE field.



PROXY_AUTHORIZATION
final public static String PROXY_AUTHORIZATION(Code)
Constant PROXY_AUTHORIZATION field.



PROXY_REQUIRE
final public static String PROXY_REQUIRE(Code)
Constant PROXY_REQUIRE field.



RACK
final public static String RACK(Code)
Constant RAck field (RFC 3262, p. 11).



RECORD_ROUTE
final public static String RECORD_ROUTE(Code)
Constant RECORD_ROUTE field.



REFER_TO
final public static String REFER_TO(Code)
Constant Refer-To field (RFC 3515, p. 3).



REQUIRE
final public static String REQUIRE(Code)
Constant REQUIRE field.



RESPONSE_KEY
final public static String RESPONSE_KEY(Code)
Constant RESPONSE_KEY field.



RETRY_AFTER
final public static String RETRY_AFTER(Code)
Constant RETRY_AFTER field.



ROUTE
final public static String ROUTE(Code)
Constant ROUTE field.



RSEQ
final public static String RSEQ(Code)
Constant RSEQ field (RFC 3262, p. 11).



SERVER
final public static String SERVER(Code)
Constant SERVER field.



SIP_ETAG
final public static String SIP_ETAG(Code)
Constant SIP_ETAG field (RFC 3903, p. 21).



SIP_IF_MATCH
final public static String SIP_IF_MATCH(Code)
Constant SIP_IF_MATCH field (RFC 3903, p. 22).



SUBJECT
final public static String SUBJECT(Code)
Constant SUBJECT field.



SUBSCRIPTION_STATE
final public static String SUBSCRIPTION_STATE(Code)
Constant SUBSCRIPTION_STATE field.



SUPPORTED
final public static String SUPPORTED(Code)
Constant SUPPORTED field.



TIMESTAMP
final public static String TIMESTAMP(Code)
Constant TIMESTAMP field.



TO
final public static String TO(Code)
Constant TO field.



UNSUPPORTED
final public static String UNSUPPORTED(Code)
Constant UNSUPPORTED field.



USER_AGENT
final public static String USER_AGENT(Code)
Constant USER_AGENT field.



VIA
final public static String VIA(Code)
Constant VIA field.



WARNING
final public static String WARNING(Code)
Constant WARNING field.



WARN_AGENT
final public static String WARN_AGENT(Code)
Constant WARN_AGENT field.



WWW_AUTHENTICATE
final public static String WWW_AUTHENTICATE(Code)
Constant WWW_AUTHENTICATE field.



headerName
public String headerName(Code)
Name of the header.



headerValue
public String headerValue(Code)
Value of the header.



parameterLessHeaders
final public static String[] parameterLessHeaders(Code)
Array of the headers that can not have any parameters. NOTE: If the size of this array is changed, getStringHash() method also must be changed!




Constructor Detail
Header
public Header()(Code)
Default constructor.



Header
public Header(String headerName)(Code)
Constructor given the name.
Parameters:
  headerName - the initial header field name



Header
public Header(String headerName, String headerValue)(Code)
Constructor given the name and value.
Parameters:
  headerName - is the header name.
Parameters:
  headerValue - is the header value.




Method Detail
clone
public Object clone()(Code)
A place holder -- this should be overriden with an actual clone method. need revisit copy of the current object



encode
public String encode()(Code)
Encodes the header into a String. String



encodeBody
abstract protected String encodeBody()(Code)
Gets the stuff that follows the headerName. a string representation of the stuff that follows theheaderName



encodeCalendar
public static String encodeCalendar(Calendar date)(Code)
A utility for encoding dates.
Parameters:
  date - the object to encode the encode date string



getHeaderName
public String getHeaderName()(Code)
Gets the header name. headerName field



getHeaderValue
public String getHeaderValue()(Code)
Gets the header value. headerValue field



getName
public String getName()(Code)
Alias for getHeaderName. headerName field



getParameters
abstract public NameValueList getParameters()(Code)
Gets the parameters for the header as a nameValue list. the name value list of header field paramaters



getStringHash
public static byte getStringHash(String s)(Code)
Calculates a signle-byte hash code of the string.
Parameters:
  s - is a string for which a hash code must be calculated hash code (from 0 to parameterLessHeaders.length) of the string



getValue
abstract public Object getValue()(Code)
Gets the value for the header as opaque object (returned value will depend upon the header. Note that this is not the same as the getHeaderValue above. the header field value



isAuthorization
public static boolean isAuthorization(String name)(Code)
Checks if a header with the given name is an Authorization or Authentication header.
Parameters:
  name - the name of the header true if the header is an Authorization or Authentication header



isParameterLess
public static boolean isParameterLess(String name)(Code)
Checks if the specified header can have some parameters.
Parameters:
  name - the name of the header true if the header can not have any parameters, false otherwise



isReliableTagPresent
public static boolean isReliableTagPresent(String strOptionTags)(Code)
Search for the reliable tag, "100rel" in a "Require" Header value. This method is internally used to identify if the response received at UAC is reliable provisional response
Parameters:
  strOptionTags - List of option tags that is actually a valueof Require Header true if "100rel" tags is found; else false



setHeaderName
public void setHeaderName(String name)(Code)
Sets the header name field.
Parameters:
  name - is the header name to set.



setHeaderValue
public void setHeaderValue(String value)(Code)
Sets the header value field.
Parameters:
  value - is the value field to set.



toString
public String toString()(Code)
Returns the encoded text contents. encode string of object contents



Methods inherited from gov.nist.core.GenericObject
abstract public Object clone()(Code)(Java Doc)
public static int compareToIgnoreCase(String s1, String s2)(Code)(Java Doc)
abstract public String encode()(Code)(Java Doc)
public static boolean equalsIgnoreCase(String s1, String s2)(Code)(Java Doc)

Methods inherited from java.lang.Object
public boolean equals(Object obj)(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.