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


javax.sip.header.CSeqHeader

CSeqHeader
public interface CSeqHeader extends Header(Code)
A CSeq header field in a request contains a single decimal sequence number and the request method. The CSeq header field serves to identify and order transactions within a dialog, to provide a means to uniquely identify transactions, and to differentiate between new requests and request retransmissions. Two CSeq header fields are considered equal if the sequence number and the request method are identical.
  • Method - The method part of CSeq is case-sensitive and MUST match that of the request.
  • Sequence number - The sequence number is chosen by the requesting client and is unique within a single value of Call-ID. The sequence number MUST be expressible as a 32-bit unsigned integer and MUST be less than 2**31. For non-REGISTER requests outside of a dialog, the sequence number value is arbitrary. Consecutive Requests that differ in method, headers or body, but have the same CallIdHeader must contain strictly monotonically increasing and contiguous sequence numbers; sequence numbers do not wrap around. Retransmissions of the same Request carry the same sequence number, but an INVITE Request with a different message body or different headers (a "re-invitation") acquires a new, higher sequence number. A server must echo the CSeqHeader from the Request in its Response. If the method value is missing in the received CSeqHeader, the server fills it in appropriately. ACK and CANCEL Requests must contain the same CSeqHeader sequence number (but not method) as the INVITE Request they refer to, while a BYE Request cancelling an invitation must have a higher sequence number. An user agent server must remember the highest sequence number for any INVITE Request with the same CallIdHeader. The server must respond to, and then discard, any INVITE Request with a lower sequence number.
As long as a client follows the above guidelines, it may use any mechanism it would like to select CSeq header field values.

Forked Requests:
Forked Requests must have the same CSeqHeader as there would be ambiguity otherwise between these forked Requests and later BYE Requests issued by the client user agent.

For Example:
CSeq: 4711 INVITE
author:
   BEA Systems, NIST
version:
   1.2



Field Summary
final public static  StringNAME
    


Method Summary
public  booleanequals(Object obj)
     Compare this CSeqHeader for equality with another.
public  StringgetMethod()
    
public  longgetSeqNumber()
     Gets the sequence number of this CSeqHeader.
public  intgetSequenceNumber()
     Gets the sequence number of this CSeqHeader.
public  voidsetMethod(String method)
    
public  voidsetSeqNumber(long sequenceNumber)
     Sets the sequence number value of the CSeqHeader.
public  voidsetSequenceNumber(int sequenceNumber)
     Sets the sequence number value of the CSeqHeader.

Field Detail
NAME
final public static String NAME(Code)
Name of the CSeqHeader





Method Detail
equals
public boolean equals(Object obj)(Code)
Compare this CSeqHeader for equality with another. This method overrides the equals method in javax.sip.Header. This method specifies object equality as outlined by RFC3261. Two CSeq header fields are considered equal if the sequence number and the request method are identical. When comparing header fields, field names are always case-insensitive. Unless otherwise stated in the definition of a particular header field, field values, parameter names, and parameter values are case-insensitive. Tokens are always case-insensitive. Unless specified otherwise, values expressed as quoted strings are case-sensitive.
Parameters:
  obj - the object to compare this CSeqHeader with. true if obj is an instance of this classrepresenting the same CseqHeader as this, false otherwise.
since:
   v1.2



getMethod
public String getMethod()(Code)
Gets the method of CSeqHeader method of CSeqHeader



getSeqNumber
public long getSeqNumber()(Code)
Gets the sequence number of this CSeqHeader. sequence number of the CSeqHeader
since:
   v1.2



getSequenceNumber
public int getSequenceNumber()(Code)
Gets the sequence number of this CSeqHeader. CSeqHeader.getSeqNumber() sequence number of the CSeqHeader
since:
   v1.1



setMethod
public void setMethod(String method) throws ParseException(Code)
Sets the method of CSeqHeader
Parameters:
  method - - the method of the Request of this CSeqHeader
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the method value.



setSeqNumber
public void setSeqNumber(long sequenceNumber) throws InvalidArgumentException(Code)
Sets the sequence number value of the CSeqHeader.
Parameters:
  sequenceNumber - - the new sequence number of this CSeqHeader
throws:
  InvalidArgumentException - if supplied value is less than zero.
since:
   v1.2



setSequenceNumber
public void setSequenceNumber(int sequenceNumber) throws InvalidArgumentException(Code)
Sets the sequence number value of the CSeqHeader. The sequence number MUST be expressible as a 32-bit unsigned integer and MUST be less than 2**32 -1
Parameters:
  sequenceNumber - - the new sequence number of this CSeqHeader
throws:
  InvalidArgumentException - if supplied value is less than zero.
since:
   v1.1CSeqHeader.setSeqNumber(long)



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