Java Doc for Transaction.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) 


javax.sip.Transaction

Transaction
public interface Transaction extends Serializable(Code)
Transactions are a fundamental component of SIP. A transaction is a request sent by a client transaction to a server transaction, along with all responses to that request sent from the server transaction back to the client transactions. User agents contain a transaction layer, as do stateful proxies. Stateless proxies do not contain a transaction layer. This specification provides the capabilities to allow either the SipProvider or SipListener to handle transactional functionality.

This interface represents a generic transaction interface defining the methods common between client and server transactions.
See Also:   TransactionState
author:
   BEA Systems, NIST
version:
   1.2





Method Summary
public  ObjectgetApplicationData()
     Returns the application data associated with the transaction.This specification does not define the format of this application specific data.
public  StringgetBranchId()
     Returns a unique branch identifer that identifies this transaction.
public  DialoggetDialog()
     Gets the dialog object of this transaction object.
public  RequestgetRequest()
     Returns the request that created this transaction.
public  intgetRetransmitTimer()
     Returns the current value of the retransmit timer in milliseconds used to retransmit messages over unreliable transports for this transaction.
public  TransactionStategetState()
     Returns the current state of the transaction.
public  voidsetApplicationData(Object applicationData)
     This method allows applications to associate application context with the transaction.
public  voidsetRetransmitTimer(int retransmitTimer)
     Sets the value of the retransmit timer to the newly supplied timer value.
public  voidterminate()
     Terminate this transaction and immediately release all stack resources associated with it.



Method Detail
getApplicationData
public Object getApplicationData()(Code)
Returns the application data associated with the transaction.This specification does not define the format of this application specific data. This is the responsibility of the application. application data associated with the transaction by the application.
since:
   v1.2



getBranchId
public String getBranchId()(Code)
Returns a unique branch identifer that identifies this transaction. The branch identifier is used in the ViaHeader. The uniqueness property of the branch ID parameter to facilitate its use as a transaction ID, was not part of RFC 2543. The branch ID inserted by an element compliant with the RFC3261 specification MUST always begin with the characters "z9hG4bK". These 7 characters are used as a magic cookie, so that servers receiving the request can determine that the branch ID was constructed to be globally unique. The precise format of the branch token is implementation-defined. This method should always return the same branch identifier for the same transaction. the new branch that uniquely identifies this transaction.



getDialog
public Dialog getDialog()(Code)
Gets the dialog object of this transaction object. A dialog only exists for a transaction when a session is setup between a User Agent Client and a User Agent Server, either by a 1xx Provisional Response for an early dialog or a 200OK Response for a committed dialog.
  • If the stack is configured with the AUTOMATIC_DIALOG_SUPPORT property set to ON ( default behavior ) then the following behavior is defined:
    • If the transaction is associated with an existing Dialog or could result in a Dialog being created in the future (ie. the stack is configured to recognize the method as a Dialog creating method or is one of the natively supported dialog creating methods such as INVITE, SUBSCRIBE or REFER), then the implementation must either associate the transaction with the existing Dialog or create a Dialog with null state.
    • If the Transaction is neither dialog creating nor can be associated with an existing dialog, then the implementation must return null when the application issues getDialog on the transaction.
  • If the stack is configured with AUTOMATIC_DIALOG property set to OFF then the stack does not automatically create a Dialog for a transaction nor does it maintain an association between dialog and transaction on behalf of the application. Hence this method will return null. It is the responsibility of the application to create a Dialog and associate it with the transaction when the response is sent.
the dialog object of this transaction object or null if no dialog exists.
See Also:   Dialog



getRequest
public Request getRequest()(Code)
Returns the request that created this transaction. The transaction state machine needs to keep the Request that resulted in the creation of this transaction while the transaction is still alive. Applications also need to access this information, e.g. a forking proxy server may wish to retrieve the original Invite request to cancel branches of a fork when a final Response has been received by one branch. the Request message that created this transaction.



getRetransmitTimer
public int getRetransmitTimer() throws UnsupportedOperationException(Code)
Returns the current value of the retransmit timer in milliseconds used to retransmit messages over unreliable transports for this transaction. the integer value of the retransmit timer in milliseconds.
throws:
  UnsupportedOperationException - if this method is not supportedby the underlying implementation.



getState
public TransactionState getState()(Code)
Returns the current state of the transaction. Returns the current TransactionState of this Transaction or null if a ClientTransaction has yet been used to send a message. a TransactionState object determining the current state of the transaction.



setApplicationData
public void setApplicationData(Object applicationData)(Code)
This method allows applications to associate application context with the transaction. This specification does not define the format of this data, this the responsibility of the application and is dependent on the application. This capability may be useful for proxy servers to associate the transaction to some application state. The context of this application data is un-interpreted by the stack.
Parameters:
  applicationData - - un-interpreted application data.
since:
   v1.2



setRetransmitTimer
public void setRetransmitTimer(int retransmitTimer) throws UnsupportedOperationException(Code)
Sets the value of the retransmit timer to the newly supplied timer value. The retransmit timer is expressed in milliseconds and its default value is 500ms. This method allows the application to change the transaction retransmit behavior for different networks. For example the gateway proxy, the internal intranet is likely to be relatively uncongested and the endpoints will be relatively close. The external network is the general Internet. This functionality allows different retransmit times for either side.
Parameters:
  retransmitTimer - - the new integer value of the retransmit timer in milliseconds.
throws:
  UnsupportedOperationException - if this method is not supportedby the underlying implementation.



terminate
public void terminate() throws ObjectInUseException(Code)
Terminate this transaction and immediately release all stack resources associated with it. When a transaction is terminated using this method, a transaction terminated event is sent to the listener. If the transaction is already associated with a dialog, it cannot be terminated using this method. Instead, the dialog should be deleted to remove the transaction.
throws:
  ObjectInUseException - if the transaction cannot be terminated as it is associated to a dialog.
since:
   v1.2



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