All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class com.ibm.devtools.SIPNoTE.SIPurl

java.lang.Object
   |
   +----com.ibm.devtools.SIPNoTE.SIPurl

public class SIPurl
extends Object
This class represents a SIP-URL. For example:
     nagy@watson.ibm.com:1107
 


Constructor Index

 o SIPurl()

Method Index

 o fromString(String)
Parses a SIP-URL from a string, and fills in the object.
 o getHost()
Returns the host contained within the SIP-URL.
 o getPort()
Returns the port contained within the SIP-URL.
 o getUser()
Returns the userid contained within the SIP-URL.
 o main(String[])
 o setHost(String)
Sets the host portion of the SIP-URL.
 o setPort(int)
Sets the port number in the SIP-URL.
 o setUser(String)
Sets the userid of the SIP-URL.
 o toURLString()
Constructs a SIP-URL string from the data present within the object.

Constructors

 o SIPurl
 public SIPurl()

Methods

 o fromString
 public void fromString(String url) throws MalformedSIPurlException
Parses a SIP-URL from a string, and fills in the object.

Parameters:
url - The string which contains the url.
Throws: MalformedSIPurlException
Thrown if the SIP-URL in the string is malformed.
 o toURLString
 public String toURLString() throws MalformedSIPurlException
Constructs a SIP-URL string from the data present within the object.

Returns:
The string representing the URL.
Throws: MalformedSIPurlException
Thrown if enough data is not present within the object to build the string.
 o getUser
 public String getUser()
Returns the userid contained within the SIP-URL.

Returns:
The user portion of the URL.
 o setUser
 public void setUser(String val)
Sets the userid of the SIP-URL.

Parameters:
val - The user name for the URL.
 o getHost
 public String getHost()
Returns the host contained within the SIP-URL.

Returns:
The host portion of the URL.
 o setHost
 public void setHost(String val)
Sets the host portion of the SIP-URL.

Parameters:
val - The hostname for the URL.
 o getPort
 public int getPort()
Returns the port contained within the SIP-URL.

Returns:
The port contained within the URL.
 o setPort
 public void setPort(int val)
Sets the port number in the SIP-URL.

Parameters:
val - The port for the URL.
 o main
 public static void main(String argv[]) throws Exception

All Packages  Class Hierarchy  This Package  Previous  Next  Index