Class jls.net.URL

This class represents an Uniform Resource Locator. scheme://username:password@domain:port/path?query_string#anchor
Defined in: URL.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
jls.net.URL(protocol, host, port, file)
Creates an URL.
Method Summary
Method Attributes Method Name and Description
 
Returns the default port associated protocol.
 
Returns the file.
 
Returns the host.
 
Returns the path.
 
Returns the port.
 
Returns the protocol.
 
Returns the query.
 
Returns the anchor.
 
Opens a connection.
 
Returns the external form of the URL.
 
Returns the string value of the URL that is its external form.
Class Detail
jls.net.URL(protocol, host, port, file)
Creates an URL.
Parameters:
{String} protocol Optional
The protocol or the URL as a string.
{String} host Optional
The host name.
{Number} port Optional
The port number.
{String} file Optional
The file part of the URL.
Method Detail
{String} getDefaultPort()
Returns the default port associated protocol.
Returns:
{String} The default port associated protocol.

{String} getFile()
Returns the file.
Returns:
{String} The file.

{String} getHost()
Returns the host.
Returns:
{String} The host.

{String} getPath()
Returns the path.
Returns:
{String} The path.

{Number} getPort()
Returns the port.
Returns:
{Number} The port.

{String} getProtocol()
Returns the protocol.
Returns:
{String} The protocol.

{String} getQuery()
Returns the query.
Returns:
{String} The query.

{String} getRef()
Returns the anchor.
Returns:
{String} The anchor.

{Object} openConnection()
Opens a connection.
Returns:
{Object} The connection.

{String} toExternalForm()
Returns the external form of the URL.
Returns:
{String} The URL as a string.

{String} toString()
Returns the string value of the URL that is its external form.
Returns:
{String} The URL as a string.

Documentation generated by JsDoc Toolkit 2.3.2 on Sat Jan 08 2011 02:00:14 GMT+0100 (CET)