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


java.lang.Object
   javax.microedition.sip.SipAddress

SipAddress
public class SipAddress (Code)
SipAddress provides a generic SIP address parser.
See Also:   JSR180
See Also:    spec, v 1.0.1, p 52-57



Constructor Summary
public  SipAddress(java.lang.String address)
     Construct a new SipAddress from string.
public  SipAddress(java.lang.String displayName, java.lang.String URI)
     Construct a new SipAddress from display name and URI.

Method Summary
public  java.lang.StringgetDisplayName()
     Returns the display name of SIP address.
public  java.lang.StringgetHost()
     Returns the host part of the SIP address.
public  java.lang.StringgetParameter(java.lang.String name)
     Returns the value associated with the named URI parameter.
public  java.lang.String[]getParameterNames()
     Returns a String array of all parameter names. String array of parameter names.
public  intgetPort()
     Returns the port number of the SIP address.
public  java.lang.StringgetScheme()
     Returns the scheme of SIP address. the scheme of this SIP address e.g.
public  java.lang.StringgetURI()
     Returns the URI part of the address (without parameters) i.e.
public  java.lang.StringgetUser()
     Returns the user part of SIP address. user part of SIP address.
public  voidremoveParameter(java.lang.String name)
     Removes the named URI parameter.
public  voidsetDisplayName(java.lang.String name)
     Sets the display name.
public  voidsetHost(java.lang.String host)
     Sets the host part of the SIP address.
public  voidsetParameter(java.lang.String name, java.lang.String value)
     Sets the named URI parameter to the specified value.
public  voidsetPort(int port)
     Sets the port number of the SIP address.
public  voidsetScheme(java.lang.String scheme)
     Sets the scheme of SIP address.
public  voidsetURI(java.lang.String URI)
     Sets the URI part of the SIP address (without parameters) i.e.
public  voidsetUser(java.lang.String user)
     Sets the user part of SIP address.
public  java.lang.StringtoString()
     Returns a fully qualified SIP address, with display name, URI and URI parameters.


Constructor Detail
SipAddress
public SipAddress(java.lang.String address) throws IllegalArgumentException(Code)
Construct a new SipAddress from string.
See Also:   JSR180
See Also:    spec, v 1.0.1, p 60



SipAddress
public SipAddress(java.lang.String displayName, java.lang.String URI) throws IllegalArgumentException(Code)
Construct a new SipAddress from display name and URI.
Parameters:
  displayName - - user display name
Parameters:
  URI - - SIP URI
throws:
  IllegalArgumentException - - if there was an errorin parsing the arguments.




Method Detail
getDisplayName
public java.lang.String getDisplayName()(Code)
Returns the display name of SIP address. display name or null if not available



getHost
public java.lang.String getHost()(Code)
Returns the host part of the SIP address. host part of this address.



getParameter
public java.lang.String getParameter(java.lang.String name)(Code)
Returns the value associated with the named URI parameter.
Parameters:
  name - - the name of the parameter the value of the named parameter,or empty string for parameterswithout value and null if the parameter is not defined



getParameterNames
public java.lang.String[] getParameterNames()(Code)
Returns a String array of all parameter names. String array of parameter names. Returns null ifthe address does not have any parameters.



getPort
public int getPort()(Code)
Returns the port number of the SIP address. If port number is not set, return 5060. If the address is wildcard "*" return 0. the port number



getScheme
public java.lang.String getScheme()(Code)
Returns the scheme of SIP address. the scheme of this SIP address e.g. sip or sips



getURI
public java.lang.String getURI()(Code)
Returns the URI part of the address (without parameters) i.e. scheme:user@host:port. the URI part of the address



getUser
public java.lang.String getUser()(Code)
Returns the user part of SIP address. user part of SIP address. Returns null if theuser part is missing.



removeParameter
public void removeParameter(java.lang.String name)(Code)
Removes the named URI parameter.
Parameters:
  name - - name of the parameter to be removed



setDisplayName
public void setDisplayName(java.lang.String name) throws IllegalArgumentException(Code)
Sets the display name. Empty string "" removes the display name.
Parameters:
  name - - display name
throws:
  IllegalArgumentException - - if the display name is invalid



setHost
public void setHost(java.lang.String host) throws IllegalArgumentException(Code)
Sets the host part of the SIP address.
Parameters:
  host - - host part
throws:
  IllegalArgumentException - - if the post part is invalid



setParameter
public void setParameter(java.lang.String name, java.lang.String value) throws IllegalArgumentException(Code)
Sets the named URI parameter to the specified value. If the value is null the parameter is interpreted as a parameter without value. Existing parameter will be overwritten, otherwise the parameter is added.
Parameters:
  name - - the named URI parameter
Parameters:
  value - - the value
throws:
  IllegalArgumentException - - if the parameter isinvalid RFC 3261,chapter 19.1.1 SIP and SIPS URI Components "URI parameters" p.149



setPort
public void setPort(int port) throws IllegalArgumentException(Code)
Sets the port number of the SIP address. Valid range is 0-65535, where 0 means that the port number is removed from the address URI.
Parameters:
  port - port number, valid range 0-65535, 0 meansthat port number is removed from the address URI.
throws:
  IllegalArgumentException - if the port number is invalid.



setScheme
public void setScheme(java.lang.String scheme) throws IllegalArgumentException(Code)
Sets the scheme of SIP address. Valid scheme format is defined in RFC 3261 [1] p.224
Parameters:
  scheme - the scheme of SIP address
throws:
  IllegalArgumentException - if the scheme is invalid



setURI
public void setURI(java.lang.String URI) throws IllegalArgumentException(Code)
Sets the URI part of the SIP address (without parameters) i.e. scheme:user@host:port. Possible URI parameters are ignored.
Parameters:
  URI - - URI part
throws:
  IllegalArgumentException - - if the URI is invalid



setUser
public void setUser(java.lang.String user) throws IllegalArgumentException(Code)
Sets the user part of SIP address.
Parameters:
  user - - the user part
throws:
  IllegalArgumentException - - if the user part is invalid



toString
public java.lang.String toString()(Code)
Returns a fully qualified SIP address, with display name, URI and URI parameters. If display name is not specified only a SIP URI is returned. If the port is not explicitly set (to 5060 or other value) it will be omitted from the address URI in returned String. a fully qualified SIP name address, SIP or SIPS URI



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.