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
-
SIPurl()
-
-
fromString(String)
- Parses a SIP-URL from a string, and fills in the object.
-
getHost()
- Returns the host contained within the SIP-URL.
-
getPort()
- Returns the port contained within the SIP-URL.
-
getUser()
- Returns the userid contained within the SIP-URL.
-
main(String[])
-
-
setHost(String)
- Sets the host portion of the SIP-URL.
-
setPort(int)
- Sets the port number in the SIP-URL.
-
setUser(String)
- Sets the userid of the SIP-URL.
-
toURLString()
- Constructs a SIP-URL string from the data present within the object.
SIPurl
public SIPurl()
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.
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.
getUser
public String getUser()
- Returns the userid contained within the SIP-URL.
- Returns:
- The user portion of the URL.
setUser
public void setUser(String val)
- Sets the userid of the SIP-URL.
- Parameters:
- val - The user name for the URL.
getHost
public String getHost()
- Returns the host contained within the SIP-URL.
- Returns:
- The host portion of the URL.
setHost
public void setHost(String val)
- Sets the host portion of the SIP-URL.
- Parameters:
- val - The hostname for the URL.
getPort
public int getPort()
- Returns the port contained within the SIP-URL.
- Returns:
- The port contained within the URL.
setPort
public void setPort(int val)
- Sets the port number in the SIP-URL.
- Parameters:
- val - The port for the URL.
main
public static void main(String argv[]) throws Exception
All Packages Class Hierarchy This Package Previous Next Index