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


java.lang.Object
   gov.nist.microedition.sip.SipDialogImpl

SipDialogImpl
public class SipDialogImpl implements SipDialog(Code)
SIP Dialog implementation. This code is in the public domain.


Field Summary
final protected static  intINITIALIZED
     Initialized, initial state of dialog.
protected  AuthorizationHeaderauthorizationHeader
     Authorization header key.
protected  Dialogdialog
    
protected  booleanisReliableProvReceived
     Permission check before sending a PRACK request.
protected  ProxyAuthorizationHeaderproxyAuthorizationHeader
     Proxy server autorization headers.

Constructor Summary
protected  SipDialogImpl(Dialog dialog, SipConnectionNotifier sipConnectionNotifier, SecurityToken classSecurityToken)
    

Method Summary
protected  voidaddSubscription(Subscription s)
     Adds a new subscription to the list of active subscriptions.
protected  DialoggetDialog()
     Gets the curre SIP Dialog.
public  StringgetDialogID()
     Returns the ID of the SIP Dialog.
public  SipClientConnectiongetNewClientConnection(String method)
     Returns new SipClientConnection in this dialog.
protected  StringgetRefreshID()
     Gets the current refreshID.
protected  SecurityTokengetSecurityToken()
     Gets the current security token.
protected  SipClientConnectionListenergetSipClientConnectionListener()
     Gets the current listener.
public  bytegetState()
     Returns the state of the SIP Dialog.
protected  voidhandleNotify(Request request, Dialog newDialog, String newDialogId)
     Handles NOTIFY request.
public  booleanisSameDialog(SipConnection sc)
     Does the given SipConnection belong to this dialog.
protected  voidremoveSubscription(Message message)
     Removes the subscription matching the given response or NOTIFY from the list of active subscriptions.
protected  voidsetDialog(Dialog newDialog)
     Sets the current Dialog handler.
protected  voidsetDialogID(String newDialogID)
     Sets the Dialog identifier.
protected  voidsetRefreshID(String newRefreshID)
     Sets the current refreshID.
protected  voidsetSipClientConnectionListener(SipClientConnectionListener newSipClientConnectionListener)
     Sets the current connection listener.
protected  voidsetState(byte newState)
    
protected  voidsetWaitForBye(boolean bye)
     Accessor for 'waitForBye' field.
protected  voidterminateIfNoSubscriptions()
     Changes the state of this dialog to TERMINATED if there are no active subscriptions.

Field Detail
INITIALIZED
final protected static int INITIALIZED(Code)
Initialized, initial state of dialog. This state is initialized in this class instead of SipDialog interface as it is an internal state



authorizationHeader
protected AuthorizationHeader authorizationHeader(Code)
Authorization header key.



dialog
protected Dialog dialog(Code)
This implementation of dialog is linked to the Nist-Siplite dialog



isReliableProvReceived
protected boolean isReliableProvReceived(Code)
Permission check before sending a PRACK request.



proxyAuthorizationHeader
protected ProxyAuthorizationHeader proxyAuthorizationHeader(Code)
Proxy server autorization headers.




Constructor Detail
SipDialogImpl
protected SipDialogImpl(Dialog dialog, SipConnectionNotifier sipConnectionNotifier, SecurityToken classSecurityToken)(Code)
Constructs this dialog based upon the Nist-Siplite dialog
Parameters:
  dialog - Nist-Siplite dialog
Parameters:
  sipConnectionNotifier - the notification handler
Parameters:
  classSecurityToken - Security token for SIP/SIPS protocol classwith this client connection




Method Detail
addSubscription
protected void addSubscription(Subscription s)(Code)
Adds a new subscription to the list of active subscriptions.
Parameters:
  s - a subscription to add



getDialog
protected Dialog getDialog()(Code)
Gets the curre SIP Dialog. the current Dialog handle



getDialogID
public String getDialogID()(Code)
Returns the ID of the SIP Dialog. Dialog ID (Call-ID + remote tag + local tag).Returns null if the dialog is terminated.



getNewClientConnection
public SipClientConnection getNewClientConnection(String method) throws IllegalArgumentException, SipException(Code)
Returns new SipClientConnection in this dialog. The SipClientConnection will be pre-initialized with the given method and following headers will be set at least (for details see RFC 3261 [1] 12.2.1.1 Generating the Request, p.73):
 To
 From
 CSeq
 Call-ID
 Max-Forwards
 Via
 Contact
 Route//ifthedialogrouteisnotempty
 

Parameters:
  method - - given method SipClientConnection with preset headers.
throws:
  IllegalArgumentException - - if the method is invalid
throws:
  SipException - - INVALID_STATE if the new connection can not beestablished in the current state of dialog.



getRefreshID
protected String getRefreshID()(Code)
Gets the current refreshID. the current refreshID



getSecurityToken
protected SecurityToken getSecurityToken()(Code)
Gets the current security token. the current security token



getSipClientConnectionListener
protected SipClientConnectionListener getSipClientConnectionListener()(Code)
Gets the current listener. the current listener



getState
public byte getState()(Code)
Returns the state of the SIP Dialog. dialog state byte number.



handleNotify
protected void handleNotify(Request request, Dialog newDialog, String newDialogId)(Code)
Handles NOTIFY request.
Parameters:
  request - NOTIFY message
Parameters:
  newDialog - a new underlying dialog implementationto associate with this dialog, may be null
Parameters:
  newDialogId - a new dialog id to set for this dialog



isSameDialog
public boolean isSameDialog(SipConnection sc)(Code)
Does the given SipConnection belong to this dialog.
Parameters:
  sc - - SipConnection to be checked, can be eitherSipClientConnection or SipServerConnection true if the SipConnection belongs to the this dialog.Returns falseif the connection is not part of this dialog or the dialog is terminated.



removeSubscription
protected void removeSubscription(Message message)(Code)
Removes the subscription matching the given response or NOTIFY from the list of active subscriptions.
Parameters:
  message - response or NOTIFY message



setDialog
protected void setDialog(Dialog newDialog)(Code)
Sets the current Dialog handler.
Parameters:
  newDialog - the new Dialog



setDialogID
protected void setDialogID(String newDialogID)(Code)
Sets the Dialog identifier.
Parameters:
  newDialogID - dialog identifier



setRefreshID
protected void setRefreshID(String newRefreshID)(Code)
Sets the current refreshID.
Parameters:
  newRefreshID - new refreshID value



setSipClientConnectionListener
protected void setSipClientConnectionListener(SipClientConnectionListener newSipClientConnectionListener)(Code)
Sets the current connection listener.
Parameters:
  newSipClientConnectionListener - the new listener



setState
protected void setState(byte newState)(Code)
Changes the state of this dialog
Parameters:
  newState - the new state of this dialog



setWaitForBye
protected void setWaitForBye(boolean bye)(Code)
Accessor for 'waitForBye' field.
Parameters:
  bye - true if we have to wait until 'BYE' is receivedto terminate the dialog, false otherwise



terminateIfNoSubscriptions
protected void terminateIfNoSubscriptions()(Code)
Changes the state of this dialog to TERMINATED if there are no active subscriptions.



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.