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


java.lang.Object
   gov.nist.core.GenericObject
      gov.nist.siplite.address.Address

Address
public class Address extends GenericObject (Code)
Address structure. Imbeds a URI and adds a display name. This code is in the public domain.
version:
   JAIN-SIP-1.1


Field Summary
final public static  intADDRESS_SPEC
     Constant field.
final public static  intNAME_ADDR
     Constant field.
final public static  intWILD_CARD
     Constant field.
protected  URIaddress
     Address field.
protected  intaddressType
     Address type.
protected  StringdisplayName
     Display name field.

Constructor Summary
public  Address()
     Default constructor.

Method Summary
public  Objectclone()
     Clone this structure.
public  Stringencode()
     Encodes the address as a string and return it.
public  booleanequals(Object other)
     Compares two address specs for equality.
public  intgetAddressType()
     Gets the address type.
public  StringgetDisplayName()
     Gets the display name.
public  StringgetHost()
     Gets the host name from the address.
public  HostPortgetHostPort()
     Gets the host port portion of the address spec.
public  java.lang.StringgetParameter(java.lang.String name)
     Returns the value associated with the named URI parameter.
public  String[]getParameterNames()
     Returns a String array of all parameter names. String array of parameter names.
public  StringgetPlainURI()
     Returns the URI part of the address (without parameters) i.e.
public  intgetPort()
     Gets the port from the imbedded URI.
public  java.lang.StringgetScheme()
     Returns the scheme of SIP address. the scheme of this SIP address e.g.
public  URIgetURI()
     Returns the URI address of this Address.
public  StringgetUser()
     Returns the user part of SIP address. user part of SIP address.
public  StringgetUserAtHostPort()
     Gets the user@host:port for the address field.
public  booleanhasDisplayName()
     return true if DisplayName exist.
public  booleanisSIPAddress()
     Return true if the embedded URI is a sip URI.
public  booleanisWildcard()
     This determines if this address is a wildcard address.
public  voidremoveDisplayName()
    
public  voidremoveParameter(String parameterName)
     Removes a parameter from the address.
public  voidsetAddressType(int atype)
     Sets the address type.
public  voidsetDisplayName(String dn)
     Sets the display name member.
public  voidsetHost(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  voidsetURI(URI addr)
     Sets the address field.
public  voidsetURI(String URI)
     Parses and creates the URI field.
public  voidsetUser(String user)
     Sets the user part of the embedded URI.
public  StringtoString()
     Creates a string representation of the address object.

Field Detail
ADDRESS_SPEC
final public static int ADDRESS_SPEC(Code)
Constant field.



NAME_ADDR
final public static int NAME_ADDR(Code)
Constant field.



WILD_CARD
final public static int WILD_CARD(Code)
Constant field.



address
protected URI address(Code)
Address field.



addressType
protected int addressType(Code)
Address type.



displayName
protected String displayName(Code)
Display name field.




Constructor Detail
Address
public Address()(Code)
Default constructor.




Method Detail
clone
public Object clone()(Code)
Clone this structure. Object Address



encode
public String encode()(Code)
Encodes the address as a string and return it. String canonical encoded version of this address.



equals
public boolean equals(Object other)(Code)
Compares two address specs for equality.
Parameters:
  other - Object to compare this this address true if the objects match



getAddressType
public int getAddressType()(Code)
Gets the address type. the addres type



getDisplayName
public String getDisplayName()(Code)
Gets the display name. the display name



getHost
public String getHost()(Code)
Gets the host name from the address. the host name.



getHostPort
public HostPort getHostPort()(Code)
Gets the host port portion of the address spec. host:port in a HostPort structure.



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 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.



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



getPort
public int getPort()(Code)
Gets the port from the imbedded URI. This assumes that a SIP URL is encapsulated in this address object. the port from the address.



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 URI getURI()(Code)
Returns the URI address of this Address. The type of URI can be determined by the scheme. address parmater of the Address object



getUser
public String getUser()(Code)
Returns the user part of SIP address. user part of SIP address. Returns null if theuser part is missing or URI has unknown type



getUserAtHostPort
public String getUserAtHostPort()(Code)
Gets the user@host:port for the address field. This assumes that the encapsulated object is a SipURI. string containing user@host:port.



hasDisplayName
public boolean hasDisplayName()(Code)
return true if DisplayName exist. boolean



isSIPAddress
public boolean isSIPAddress()(Code)
Return true if the embedded URI is a sip URI. true if the embedded URI is a SIP URI.



isWildcard
public boolean isWildcard()(Code)
This determines if this address is a wildcard address. That is Address.getAddress.getUserInfo() == *; true if this name address is a wildcard, false otherwise.



removeDisplayName
public void removeDisplayName()(Code)
remove the displayName field



removeParameter
public void removeParameter(String parameterName)(Code)
Removes a parameter from the address.
Parameters:
  parameterName - is the name of the parameter to remove.



setAddressType
public void setAddressType(int atype)(Code)
Sets the address type. The address can be NAME_ADDR, ADDR_SPEC or WILD_CARD.
Parameters:
  atype - int to set



setDisplayName
public void setDisplayName(String dn) throws IllegalArgumentException(Code)
Sets the display name member.
Parameters:
  dn - String to set
throws:
  IllegalArgumentException - if the name contains invalidcharacters



setHost
public void setHost(String host) throws IllegalArgumentException(Code)
Sets the host part of the SIP address.
Parameters:
  host - host part
throws:
  IllegalArgumentException - if the host part is formated wrong way



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



setURI
public void setURI(URI addr)(Code)
Sets the address field.
Parameters:
  addr - SipURI to set



setURI
public void setURI(String URI)(Code)
Parses and creates the URI field.
Parameters:
  URI - SipURI to set



setUser
public void setUser(String user) throws IllegalArgumentException(Code)
Sets the user part of the embedded URI.
Parameters:
  user - user name to set for the embedded URI.
throws:
  IllegalArgumentException - if the user part contains invalidcharacters



toString
public String toString()(Code)
Creates a string representation of the address object. String canonical encoded version of this address.



Methods inherited from gov.nist.core.GenericObject
abstract public Object clone()(Code)(Java Doc)
public static int compareToIgnoreCase(String s1, String s2)(Code)(Java Doc)
abstract public String encode()(Code)(Java Doc)
public static boolean equalsIgnoreCase(String s1, String s2)(Code)(Java Doc)

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.