Packagesystem.network
Classpublic class URIScheme
InheritanceURIScheme Inheritance Object

The URIScheme class.

See:

generic syntax :

     <scheme>://[<username>[:<password>]@]<host>[:<port>]/<path>[?<query>][#<fragment>]
     



Public Properties
 PropertyDefined By
  defaultPort : int
The default port of the scheme.
URIScheme
  delimiter : String
The delimiter value.
URIScheme
  scheme : String
The scheme expression.
URIScheme
Public Methods
 MethodDefined By
  
URIScheme(scheme:String, delimiter:String, defaultPort:int = -1)
Creates a new URIScheme instance.
URIScheme
Public Constants
 ConstantDefined By
  AIRAPPLICATION : URIScheme
[static] AIR Application protocol.
URIScheme
  AIRSTORAGE : URIScheme
[static] AIR Storage protocol.
URIScheme
  FILE : URIScheme
[static] Addressing files on local or network file systems.
URIScheme
  FTP : URIScheme
[static] FTP resources Syntax: ftp://[<username$gt;[:<password>]@]<host>[:<port>]/<path> Example: ftp://ftp.is.co.za/rfc/rfc1808.txt
URIScheme
  GOPHER : URIScheme
[static] Gopher protocol Syntax: gopher://<host>:<port>/<item type>/<path>
URIScheme
  HTTP : URIScheme
[static] HTTP resources Syntax: http://[<username>[:<password>]@]<host>[:<port>]/<path>[?<query>][#<fragment>] Example: http://www.ietf.org/rfc/rfc2396.txt
URIScheme
  HTTPS : URIScheme
[static] HTTP connections secured using SSL/TLS Syntax: https://[<username>[:<password>]@]<host>[:<port>]/<path>[?<query>][#<fragment>]
URIScheme
  MAILTO : URIScheme
[static] Mail to resources Syntax: mailto:<address>[?<header1>=<value1>[&<header2$gt;=<value2>]] Example: mailto:John.Doe@example.com mailto:jsmith@example.com?subject=A%20Test&body=My%20idea%20is%3A%20%0A
URIScheme
  NEWS : URIScheme
[static] Newsgroups and postings.
URIScheme
  NNTP : URIScheme
[static] Usenet NNTP (Network News Transfer Protocol).
URIScheme
Property Detail
defaultPortproperty
public var defaultPort:int

The default port of the scheme.

delimiterproperty 
public var delimiter:String

The delimiter value.

schemeproperty 
public var scheme:String

The scheme expression.

Constructor Detail
URIScheme()Constructor
public function URIScheme(scheme:String, delimiter:String, defaultPort:int = -1)

Creates a new URIScheme instance.

Parameters
scheme:String — The String representation of the uri scheme.
 
delimiter:String — The delimiter value.
 
defaultPort:int (default = -1) — The default port of the scheme.
Constant Detail
AIRAPPLICATIONConstant
public static const AIRAPPLICATION:URIScheme

AIR Application protocol.

Syntax:

         app:<path>
         

Example:

         app:/DesktopPathTest.xml
         

AIRSTORAGEConstant 
public static const AIRSTORAGE:URIScheme

AIR Storage protocol.

Syntax:

         app-storage:<path>
         

Example:

         app-storage:/preferences.xml
         

FILEConstant 
public static const FILE:URIScheme

Addressing files on local or network file systems.

Syntax:

         file://[<host>]/<path>
         

Example:

         file:///C:/Documents%20and%20Settings/bob/Desktop
         file:///Users/bob/Desktop
         file://alpha.hut.fi/u/lai/tik/tik76002/public_html/lerman.files/chaps
         file:///u/lai/tik/tik76002/public_html/lerman.files/chaps
         file:///etc/motd
         

FTPConstant 
public static const FTP:URIScheme

FTP resources

Syntax:

         ftp://[<username$gt;[:<password>]@]<host>[:<port>]/<path>
         

Example:

         ftp://ftp.is.co.za/rfc/rfc1808.txt
         

GOPHERConstant 
public static const GOPHER:URIScheme

Gopher protocol

Syntax:

         gopher://<host>:<port>/<item type>/<path>
         

HTTPConstant 
public static const HTTP:URIScheme

HTTP resources

Syntax:

         http://[<username>[:<password>]@]<host>[:<port>]/<path>[?<query>][#<fragment>]
         

Example:

         http://www.ietf.org/rfc/rfc2396.txt
         

HTTPSConstant 
public static const HTTPS:URIScheme

HTTP connections secured using SSL/TLS

Syntax:

         https://[<username>[:<password>]@]<host>[:<port>]/<path>[?<query>][#<fragment>]
         

MAILTOConstant 
public static const MAILTO:URIScheme

Mail to resources

Syntax:

         mailto:<address>[?<header1>=<value1>[&<header2$gt;=<value2>]]
         

Example:

         mailto:John.Doe@example.com
         mailto:jsmith@example.com?subject=A%20Test&body=My%20idea%20is%3A%20%0A
         

NEWSConstant 
public static const NEWS:URIScheme

Newsgroups and postings.

Syntax:

         news:<newsgroupname>
         news:<message-id>
         

Example:

         news:comp.infosystems.www.servers.unix
         

NNTPConstant 
public static const NNTP:URIScheme

Usenet NNTP (Network News Transfer Protocol).

Syntax:

         nntp://<host>:<port>/<newsgroup-name>/<article-number>