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


javax.sip.address.TelURL

TelURL
public interface TelURL extends URI,Parameters(Code)
This class represents Tel URLs, which are used for addressing. The Tel URL starts with the scheme tel:. This tells the local entity that what follows is a URL that should be parsed as described in RFC2806. After that, the URL contains the phone number of the remote entity.

Within a SIP Message, TelURLs can be used to indicate the source and intended destination of a Request, redirection addresses and the current destination of a Request. All these Headers may contain TelURLs.

The TelURL interface extends the generic URI interface and provides additional convenience methods for the following components of a TelURL address, above the generic URI class:

  • ISDN Subaddress - Phone numbers can also contain subaddresses, which are used to identify different remote entities under the same phone number.
  • Post Dial - Phone numbers can also contain a post-dial sequence. This is what is often used with voice mailboxes and other services that are controlled by dialing numbers from your phone keypad while the call is in progress.
  • Global - Phone numbers can be either "global" or "local". Global numbers are unambiguous everywhere. Local numbers are usable only within a certain area.
  • URL parameters - Parameters affecting a request constructed from this URL. URL parameters are added to the end of the URL component and are separated by semi-colons. URL parameters take the form:
    parameter-name "=" parameter-value
See RFC2806 for more information on the use of TelURL's.
author:
   BEA Systems, NIST
version:
   1.2




Method Summary
public  StringgetIsdnSubAddress()
     Returns the value of the isdnSubAddress parameter, or null if it is not set.
public  StringgetPhoneContext()
     Returns the value of the phoneContext parameter, or null if it is not set.
public  StringgetPhoneNumber()
     Returns the value of the phoneNumber parameter.
public  StringgetPostDial()
     Returns the value of the postDial parameter, or null if it is not set.
public  booleanisGlobal()
     Returns true if this TelURL is global i.e.
public  voidsetGlobal(boolean global)
     Sets phone user of this TelURL to be either global or local.
public  voidsetIsdnSubAddress(String isdnSubAddress)
     Sets ISDN subaddress of this TelURL.
public  voidsetPhoneContext(String phoneContext)
     Sets the phone context of this TelURL.
public  voidsetPhoneNumber(String phoneNumber)
     Sets phone number of this TelURL.
public  voidsetPostDial(String postDial)
     Sets post dial of this TelURL.
public  StringtoString()
     This method returns the URI as a string.



Method Detail
getIsdnSubAddress
public String getIsdnSubAddress()(Code)
Returns the value of the isdnSubAddress parameter, or null if it is not set. the value of the isdnSubAddress parameter



getPhoneContext
public String getPhoneContext()(Code)
Returns the value of the phoneContext parameter, or null if it is not set. the value of the phoneContext parameter
since:
   v1.2



getPhoneNumber
public String getPhoneNumber()(Code)
Returns the value of the phoneNumber parameter. This method will not return the "+" associated with telephone numbers. the value of the phoneNumber parameter



getPostDial
public String getPostDial()(Code)
Returns the value of the postDial parameter, or null if it is not set. the value of the postDial parameter



isGlobal
public boolean isGlobal()(Code)
Returns true if this TelURL is global i.e. if the TelURI has a global phone user. true if this TelURL represents a global phone user,and false otherwise.



setGlobal
public void setGlobal(boolean global)(Code)
Sets phone user of this TelURL to be either global or local. The default value is false, hence the TelURL is defaulted to local.
Parameters:
  global - - the boolean value indicating if the TelURL has a globalphone user.



setIsdnSubAddress
public void setIsdnSubAddress(String isdnSubAddress) throws ParseException(Code)
Sets ISDN subaddress of this TelURL. If a subaddress is present, it is appended to the phone number after ";isub=".
Parameters:
  isdnSubAddress - - new value of the isdnSubAddressparameter
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the isdnSubAddress value.



setPhoneContext
public void setPhoneContext(String phoneContext) throws ParseException(Code)
Sets the phone context of this TelURL.
Parameters:
  phoneContext - - new value of the phoneContextparameter
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the phoneContext value.
since:
   v1.2



setPhoneNumber
public void setPhoneNumber(String phoneNumber) throws ParseException(Code)
Sets phone number of this TelURL. The phone number may either be local or global determined by the isGlobal method in this interface. The phoneNumber argument should not contain the "+" associated with telephone numbers.
Parameters:
  phoneNumber - - new value of the phoneNumber parameter
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the phoneNumber value.



setPostDial
public void setPostDial(String postDial) throws ParseException(Code)
Sets post dial of this TelURL. The post-dial sequence describes what and when the local entity should send to the phone line.
Parameters:
  postDial - - new value of the postDial parameter
throws:
  ParseException - which signals that an error has been reachedunexpectedly while parsing the postDial value.



toString
public String toString()(Code)
This method returns the URI as a string. String The stringified version of the URI



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