Java Doc for SipHeader.java in  » 6.0-JDK-Modules » j2me » javax » microedition » sip » 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 » javax.microedition.sip 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   javax.microedition.sip.SipHeader

SipHeader
public class SipHeader (Code)
SipHeader provides generic SIP header parser helper. This class can be used to parse bare String header values that are read from SIP message using e.g. SipConnection.getHeader() method. It should be noticed that SipHeader is separate helper class and not mandatory to use for creating SIP connections.
See Also:   JSR180
See Also:    spec, v 1.0.1, p 47-51



Constructor Summary
public  SipHeader(String name, String value)
     Constructs a SipHeader from name value pair.

Method Summary
public  java.lang.StringgetHeaderValue()
     Returns the full header value including parameters.
public  java.lang.StringgetName()
    
public  java.lang.StringgetParameter(java.lang.String name)
     Returns the value of one header parameter. For example, from value <sip:UserB@192.168.200.201>;expires=3600 the method call getParameter(expires) will return 3600.
Parameters:
  name - name of the header parameter value of header parameter.
public  java.lang.String[]getParameterNames()
     Returns the names of header parameters.
public  java.lang.StringgetValue()
     Returns the header value without header parameters. For example for header <sip:UserB@192.168.200.201>;expires=3600 method returns <sip:UserB@192.168.200.201> In the case of an authorization or authentication header getValue() returns only the authentication scheme e.g.
public  voidremoveParameter(java.lang.String name)
     Removes the header parameter, if it is found in this header.
public  voidsetName(java.lang.String name)
    
public  voidsetParameter(java.lang.String name, java.lang.String value)
     Sets value of header parameter.
public  voidsetValue(java.lang.String value)
     Sets the header value as String without parameters. For example <sip:UserB@192.168.200.201>. The existing (if any) header parameter values are not modified. For the authorization and authentication header this method sets the authentication scheme e.g.
public  java.lang.StringtoString()
     Returns the String representation of the header according to header type.


Constructor Detail
SipHeader
public SipHeader(String name, String value) throws IllegalArgumentException(Code)
Constructs a SipHeader from name value pair. For example:
 name = Contact
 value = <sip:UserB@192.168.200.201>;expires=3600
 

Parameters:
  name - name of the header (Contact, Call-ID, ...)
Parameters:
  value - full header value as String
throws:
  IllegalArgumentException - if the header value orname are invalid




Method Detail
getHeaderValue
public java.lang.String getHeaderValue()(Code)
Returns the full header value including parameters. For example Alice <sip:alice@atlanta.com>;tag=1928301774 full header value including parameters



getName
public java.lang.String getName()(Code)
Returns the name of this header the name of this header as String



getParameter
public java.lang.String getParameter(java.lang.String name)(Code)
Returns the value of one header parameter. For example, from value <sip:UserB@192.168.200.201>;expires=3600 the method call getParameter(expires) will return 3600.
Parameters:
  name - name of the header parameter value of header parameter. returns empty string for a parameterwithout value and null if the parameter does not exist.



getParameterNames
public java.lang.String[] getParameterNames()(Code)
Returns the names of header parameters. Returns null if there are no header parameters. names of the header parameters. Returns null if there areno parameters.



getValue
public java.lang.String getValue()(Code)
Returns the header value without header parameters. For example for header <sip:UserB@192.168.200.201>;expires=3600 method returns <sip:UserB@192.168.200.201> In the case of an authorization or authentication header getValue() returns only the authentication scheme e.g. Digest. header value without header parameters



removeParameter
public void removeParameter(java.lang.String name)(Code)
Removes the header parameter, if it is found in this header.
Parameters:
  name - name of the header parameter



setName
public void setName(java.lang.String name) throws IllegalArgumentException(Code)
Sets the header name, for example Contact
Parameters:
  name - Header name
throws:
  IllegalArgumentException - if the name is invalid



setParameter
public void setParameter(java.lang.String name, java.lang.String value) throws IllegalArgumentException(Code)
Sets value of header parameter. If parameter does not exist it will be added. For example, for header value <sip:UserB@192.168.200.201> calling setParameter(expires, 3600) will construct header value <sip:UserB@192.168.200.201>;expires=3600. If the value is null, the parameter is interpreted as a parameter without value.
Parameters:
  name - name of the header parameter
Parameters:
  value - value of the parameter
throws:
  IllegalArgumentException - if the parameter name orvalue are invalid



setValue
public void setValue(java.lang.String value) throws IllegalArgumentException(Code)
Sets the header value as String without parameters. For example <sip:UserB@192.168.200.201>. The existing (if any) header parameter values are not modified. For the authorization and authentication header this method sets the authentication scheme e.g. Digest.
Parameters:
  value - the header value
throws:
  IllegalArgumentException - if the value is invalid or there isparameters included.



toString
public java.lang.String toString()(Code)
Returns the String representation of the header according to header type. For example: From: Alice <sip:alice@atlanta.com>;tag=1928301774 WWW-Authenticate: Digest realm=atlanta.com, domain=sip:boxesbybob.com, qop=auth, nonce=f84f1cec41e6cbe5aea9c8e88d359, opaque=, stale=FALSE, algorithm=MD5 encoded string of object contents



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.