Method Summary |
|
public void | clearPassword() Clears the password from the user part if it exists. |
public void | clearQheaders() Clears all Qheaders. |
public void | clearUriParms() Clears all URI Parameters. |
public Object | clone() Copies the current instance. |
public String | encode() Constructs a URL from the parsed structure. |
public boolean | equals(Object that) Compares two URIs and return true if they are equal.
Parameters: that - the object to compare to. |
public Authority | getAuthority() Gets the authority. |
public int | getDefaultPort() Returns default port number according to current scheme. |
public String | getHeader(String name) Returns the value of the named header, or null if it is not set.
SIP/SIPS URIs may specify headers. |
public Vector | getHeaderNames() Returns an Iterator over the names (Strings) of all headers present
in this SipURI. |
public String | getHost() Gets the host protion of the URI. |
public HostPort | getHostPort() Gets the host and port of the server. |
public String | getLrParam() Returns the value of the lr parameter, or null if this
is not set. |
public String | getMAddrParam() Returns the value of the maddr parameter, or null if this
is not set. |
public String | getMethod() Gets the method parameter. |
public String | getMethodParam() Returns the value of the method parameter, or null if this
is not set. |
public String | getParameter(String name) Returns the value of the named parameter, or null if it is not set. |
public Vector | getParameterNames() Returns an Iterator over the names (Strings) of all parameters present
in this ParametersHeader. |
public Object | getParm(String parmname) Gets the parameter (do a name lookup) and return null if none exists.
Parameters: parmname - Name of the parameter to get. |
public String | getPlainURI() Returns the URI part of the address (without parameters)
i.e. |
public int | getPort() Gets the port from the authority field. |
public NameValueList | getQheaders() |
public int | getTTLParam() Returns the value of the "ttl" parameter, or -1 if this is not set. |
public TelephoneNumber | getTelephoneSubscriber() Returns the stucture corresponding to the telephone number
provided that the user is a telephone subscriber. |
public String | getTransportParam() Returns the value of the "transport" parameter, or null if this is not
set. |
public String | getTypeParam() Returns the value of the "type" parameter, or null if this is not
set. |
public NameValueList | getUriParms() |
public String | getUser() Returns the value of the userParam ,
or null if this is not set. |
public String | getUserAtHost() Gets user at host information. |
public String | getUserAtHostPort() Gets user at host and port infromation. |
public String | getUserParam() Returns the user part of this SipURI, or null if it is not set. |
public String | getUserPassword() Gets the password of the user. |
public String | getUserType() Gets the user parameter. |
public boolean | hasLrParam() Returns whether the the lr parameter is set. |
public boolean | hasParameter(String name) Boolean to check if a parameter of a given name exists.
Parameters: name - Name of the parameter to check on. |
public boolean | hasTransport() Returns true if the transport parameter is defined. |
public boolean | isSecure() Returns true if this SipURI is secure i.e. |
public boolean | isServer() Checks if URI is shared. |
public boolean | isShared() Checks if URI is shared. |
public boolean | isSipURI() This method determines if this is a URI with a scheme of "sip"
or "sips". |
public boolean | isTelURL() |
public boolean | isUserTelephoneSubscriber() Returns true if the user is a telephone subscriber.
If the host is an Internet telephony
gateway, a telephone-subscriber field MAY be used instead
of a user field. |
public void | removeHeader(String name) Removes a header given its name (provided it exists). |
public void | removeHeaders() Removes all headers. |
public void | removeMAddr() Removes the maddr param if it exists. |
public void | removeMethod() Removes the Method. |
public void | removeParameter(String name) |
public void | removePort() Removes the port setting. |
public void | removeTTL() Removes the ttl value from the parameter list if it exists. |
public void | removeTransport() Deletes the transport string. |
public void | removeUriParms() Removes the URI parameters. |
public void | removeUser() Removes the user. |
public void | removeUserType() Sets the user type. |
public void | setAuthority(Authority newAuthority) |
public void | setDefaultParm(String name, Object value) Sets the default parameters for this URI. |
public void | setHeader(String name, String value) Sets the value of the specified header fields to be included in a
request constructed from the URI. |
public void | setHost(Host h) Sets the host for this URI. |
public void | setHost(String host) Returns the host part of this SipURI. |
public void | setHostPort(HostPort hostPort) Sets the hostPort field of the embedded authority field. |
public void | setIsdnSubAddress(String isdnSubAddress) Sets ISDN subaddress of SipURL. |
public void | setLrParam() Sets the value of the lr parameter of this SipURI. |
public void | setMAddr(String mAddr) Sets the MADDR parameter. |
public void | setMAddrParam(String maddr) Sets the value of the maddr parameter of this SipURI. |
public void | setMethod(String method) Sets the Method. |
public void | setMethodParam(String method) Sets the value of the method parameter. |
public void | setParameter(String name, String value) Sets the value of the specified parameter. |
public void | setPort(int p) Sets the port to a given value. |
public void | setQHeader(NameValue nameValue) Sets the query header when provided as a name-value pair. |
public void | setQheaders(NameValueList parms) Sets the qheaders member. |
public void | setScheme(String scheme) Constructor given the scheme. |
public void | setSecure(boolean secure) Sets the scheme of this URI to sip or sips depending on whether the
argument is true or false. |
public void | setServer() Sets URI as server. |
public void | setShared() Sets URI as shared. |
public void | setTTLParam(int ttl) Sets the value of the ttl parameter. |
public void | setTelephoneSubscriber(TelephoneNumber tel) Sets the telephone subscriber field. |
public void | setTransportParam(String transport) Sets the value of the "transport" parameter. |
public void | setUriParameter(NameValue nameValue) Sets the parameter as given. |
public void | setUser(String uname) Sets the user of SipURI. |
public void | setUserParam(String usertype) Sets the value of the user parameter. |
public void | setUserPassword(String password) Sets the user password. |
public String | toString() Returns a string representation. |