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


java.lang.Object
   javax.sip.TransactionState

TransactionState
final public class TransactionState implements Serializable(Code)
This class contains the enumerations that define the underlying state of an existing transaction. SIP defines four types of transactions, these are Invite Client transactions, Invite Server transactions, Non-Invite Client transactions and Non-Invite Server transactions. There are six explicit states for the various transactions, namely:
  • Calling:
    • Invite Client transaction: The initial state, "calling", MUST be entered when the application initiates a new client transaction with an INVITE request.
  • Trying:
    • Non-Invite Client transaction: The initial state "Trying" is entered when the application initiates a new client transaction with a request.
    • Non-Invite Server transaction: The initial state "Trying" is entered when the application is passed a request other than INVITE or ACK.
  • Proceeding:
    • Invite Client transaction: If the client transaction receives a provisional response while in the "Calling" state, it transitions to the "Proceeding" state.
    • Non-Invite Client transaction: If a provisional response is received while in the "Trying" state, the client transaction SHOULD move to the "Proceeding" state.
    • Invite Server transaction: When a server transaction is constructed for a request, it enters the initial state "Proceeding".
    • Non-Invite Server transaction: While in the "Trying" state, if the application passes a provisional response to the server transaction, the server transaction MUST enter the "Proceeding" state.
  • Completed: The "Completed" state exists to buffer any additional response retransmissions that may be received, which is why the client transaction remains there only for unreliable transports.
    • Invite Client transaction: When in either the "Calling" or "Proceeding" states, reception of a response with status code from 300-699 MUST cause the client transaction to transition to "Completed".
    • Non-Invite Client transaction: If a final response (status codes 200-699) is received while in the "Trying" or "Proceeding" state, the client transaction MUST transition to the "Completed" state.
    • Invite Server transaction: While in the "Proceeding" state, if the application passes a response with status code from 300 to 699 to the server transaction, the state machine MUST enter the "Completed" state.
    • Non-Invite Server transaction: If the application passes a final response (status codes 200-699) to the server while in the "Proceeding" state, the transaction MUST enter the "Completed" state.
  • Confirmed: The purpose of the "Confirmed" state is to absorb any additional ACK messages that arrive, triggered from retransmissions of the final response. Once this time expires the server MUST transition to the "Terminated" state.
    • Invite Server transaction: If an ACK is received while the server transaction is in the "Completed" state, the server transaction MUST transition to the "Confirmed" state.
  • Terminated: The transaction MUST be available for garbage collection the instant it enters the "Terminated" state.
    • Invite Client transaction: When in either the "Calling" or "Proceeding" states, reception of a 2xx response MUST cause the client transaction to enter the "Terminated" state. If amount of time that the server transaction can remain in the "Completed" state when unreliable transports are used expires while the client transaction is in the "Completed" state, the client transaction MUST move to the "Terminated" state.
    • Non-Invite Client transaction: If the transaction times out while the client transaction is still in the "Trying" or "Proceeding" state, the client transaction SHOULD inform the application about the timeout, and then it SHOULD enter the "Terminated" state. If the response retransmissions buffer expires while in the "Completed" state, the client transaction MUST transition to the "Terminated" state.
    • Invite Server transaction: If in the "Proceeding" state, and the application passes a 2xx response to the server transaction, the server transaction MUST transition to the "Terminated" state. When the server transaction abandons retransmitting the response while in the "Completed" state, it implies that the ACK was never received. In this case, the server transaction MUST transition to the "Terminated" state, and MUST indicate to the TU that a transaction failure has occurred.
    • Non-Invite Server transaction: If the request retransmissions buffer expires while in the "Completed" state, the server transaction MUST transition to the "Terminated" state.
For each specific transaction state machine, refer to RFC3261.
author:
   BEA Systems, NIST
version:
   1.2


Field Summary
final public static  TransactionStateCALLING
     This constant value indicates that the transaction state is "Calling".
final public static  TransactionStateCOMPLETED
     This constant value indicates that the transaction state is "Completed".
final public static  TransactionStateCONFIRMED
     This constant value indicates that the transaction state is "Confirmed".
final public static  TransactionStatePROCEEDING
     This constant value indicates that the transaction state is "Proceeding".
final public static  TransactionStateTERMINATED
     This constant value indicates that the transaction state is "Terminated".
final public static  TransactionStateTRYING
     This constant value indicates that the transaction state is "Trying".
final public static  int_CALLING
     This constant value indicates the internal value of the "Calling" constant.
final public static  int_COMPLETED
     This constant value indicates the internal value of the "Completed" constant.
final public static  int_CONFIRMED
     This constant value indicates the internal value of the "Confirmed" constant.
final public static  int_PROCEEDING
     This constant value indicates the internal value of the "Proceeding" constant.
final public static  int_TERMINATED
     This constant value indicates the internal value of the "Terminated" constant.
final public static  int_TRYING
     This constant value indicates the internal value of the "Trying" constant.


Method Summary
public  booleanequals(Object obj)
     Compare this transaction state for equality with another.
since:
   1.2
Parameters:
  obj - the object to compare this with.
public static  TransactionStategetObject(int transactionState)
    
public  intgetValue()
    
public  inthashCode()
     Get a hash code value for this transaction state.
public  StringtoString()
    

Field Detail
CALLING
final public static TransactionState CALLING(Code)
This constant value indicates that the transaction state is "Calling".



COMPLETED
final public static TransactionState COMPLETED(Code)
This constant value indicates that the transaction state is "Completed".



CONFIRMED
final public static TransactionState CONFIRMED(Code)
This constant value indicates that the transaction state is "Confirmed".



PROCEEDING
final public static TransactionState PROCEEDING(Code)
This constant value indicates that the transaction state is "Proceeding".



TERMINATED
final public static TransactionState TERMINATED(Code)
This constant value indicates that the transaction state is "Terminated".



TRYING
final public static TransactionState TRYING(Code)
This constant value indicates that the transaction state is "Trying".



_CALLING
final public static int _CALLING(Code)
This constant value indicates the internal value of the "Calling" constant.
This constant has an integer value of 0.



_COMPLETED
final public static int _COMPLETED(Code)
This constant value indicates the internal value of the "Completed" constant.
This constant has an integer value of 3.



_CONFIRMED
final public static int _CONFIRMED(Code)
This constant value indicates the internal value of the "Confirmed" constant.
This constant has an integer value of 4.



_PROCEEDING
final public static int _PROCEEDING(Code)
This constant value indicates the internal value of the "Proceeding" constant.
This constant has an integer value of 2.



_TERMINATED
final public static int _TERMINATED(Code)
This constant value indicates the internal value of the "Terminated" constant.
This constant has an integer value of 5.



_TRYING
final public static int _TRYING(Code)
This constant value indicates the internal value of the "Trying" constant. This constant has an integer value of 1.





Method Detail
equals
public boolean equals(Object obj)(Code)
Compare this transaction state for equality with another.
since:
   1.2
Parameters:
  obj - the object to compare this with. true if obj is an instance of this classrepresenting the same transaction state as this, false otherwise.



getObject
public static TransactionState getObject(int transactionState)(Code)
This method returns the object value of the TransactionState The TransactionState Object
Parameters:
  transactionState - The integer value of the TransactionState



getValue
public int getValue()(Code)
This method returns the integer value of the TransactionState The integer value of the TransactionState



hashCode
public int hashCode()(Code)
Get a hash code value for this transaction state.
since:
   1.2 a hash code value.



toString
public String toString()(Code)



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(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.