javax.servlet.sip
Interface TelURL

All Superinterfaces:
java.lang.Cloneable, URI

public interface TelURL
extends URI

Represents tel URLs as defined by RFC 2806. Tel URLs represent telephone numbers. SIP servlet containers may be able to route requests based on tel URLs but are not required to.

See Also:
RFC 2806

Method Summary
 java.lang.String getParameter(java.lang.String key)
          Returns the value of the named parameter, or null if it is not set.
 java.util.Iterator getParameterNames()
          Returns an Iterator over the names of all parameters present in this TelURL.
 java.lang.String getPhoneNumber()
          Returns the phone number of this TelURL.
 boolean isGlobal()
          Returns true if this TelURL is global, and false otherwise.
 java.lang.String toString()
          Returns the String representation of this TelURL.
 
Methods inherited from interface javax.servlet.sip.URI
clone, getScheme, isSipURI
 

Method Detail

getPhoneNumber

public java.lang.String getPhoneNumber()
Returns the phone number of this TelURL. The returned string includes any visual separators present in the phone number part of the URL but does not include a leading "+" for global tel URLs.
Returns:
the number of this TelURL

isGlobal

public boolean isGlobal()
Returns true if this TelURL is global, and false otherwise.
Returns:
true if this tel URL is in global form

getParameter

public java.lang.String getParameter(java.lang.String key)
Returns the value of the named parameter, or null if it is not set. A zero-length String indicates flag parameter.
Parameters:
key - a String specifying the parameter name
Returns:
value of the specified parameter

getParameterNames

public java.util.Iterator getParameterNames()
Returns an Iterator over the names of all parameters present in this TelURL.
Returns:
an iterator over strings containing the names of this URLs parameters

toString

public java.lang.String toString()
Returns the String representation of this TelURL.
Specified by:
toString in interface URI
Overrides:
toString in class java.lang.Object
Returns:
the String representation of this TelURL


SIP Servlet API 1.0