Packagevegas.net
Classpublic class HTTPHost
InheritanceHTTPHost Inheritance Object
Implements Cloneable, Equatable, Serializable

Holds all of the variables needed to describe an HTTP connection to a host. This includes remote host name, port and scheme.

Example :

     import vegas.net.HTTPHost ;
     
     var h:HTTPHost ;
     
     h = new HTTPHost("localhost") ;
     
     trace(h) ;
     
     h = new HTTPHost("127.0.0.1", 80, "https") ;
     
     trace(h) ;
     



Public Properties
 PropertyDefined By
  DEFAULT_SCHEME_NAME : String = http
[static] The default scheme is "http".
HTTPHost
  host : String
Determinates the host name.
HTTPHost
  port : int
Determinates the port value.
HTTPHost
  scheme : String
Determinates the scheme name.
HTTPHost
Public Methods
 MethodDefined By
  
HTTPHost(host:String, port:int = -1, scheme:String = null)
Creates a new HTTPHost instance.
HTTPHost
  
clone():*
Creates and returns a shallow copy of the object.
HTTPHost
  
equals(o:*):Boolean
Compares the specified object with this object for equality.
HTTPHost
  
toSource(indent:int = 0):String
Returns the source code string representation of the object.
HTTPHost
  
toString():String
Returns a string containing a concise, human-readable description of the receiver.
HTTPHost
  
toURI():String
Returns the host URI, as a string.
HTTPHost
Property Detail
DEFAULT_SCHEME_NAMEproperty
public static var DEFAULT_SCHEME_NAME:String = http

The default scheme is "http".

hostproperty 
host:String

Determinates the host name. The host name is always normalized to lower case.


Implementation
    public function get host():String
    public function set host(value:String):void
portproperty 
port:int

Determinates the port value. -1 indicates the scheme default port.


Implementation
    public function get port():int
    public function set port(value:int):void
schemeproperty 
scheme:String

Determinates the scheme name. null indicates the {


Implementation
    public function get scheme():String
    public function set scheme(value:String):void
Constructor Detail
HTTPHost()Constructor
public function HTTPHost(host:String, port:int = -1, scheme:String = null)

Creates a new HTTPHost instance.

Parameters
host:String — the host name (IP or DNS name). The host name is always normalized to lower case.
 
port:int (default = -1) — the port number. -1 indicates the scheme default port.
 
scheme:String (default = null) — the name of the scheme. null indicates the {
Method Detail
clone()method
public function clone():*

Creates and returns a shallow copy of the object.

Returns
* — A new object that is a shallow copy of this instance.
equals()method 
public function equals(o:*):Boolean

Compares the specified object with this object for equality.

Parameters

o:*

Returns
Booleantrue if the the specified object is equal with this object.
toSource()method 
public function toSource(indent:int = 0):String

Returns the source code string representation of the object.

Parameters

indent:int (default = 0)

Returns
String — the source code string representation of the object.
toString()method 
public function toString():String

Returns a string containing a concise, human-readable description of the receiver.

Returns
String — a string containing a concise, human-readable description of the receiver.
toURI()method 
public function toURI():String

Returns the host URI, as a string.

Returns
String — the host URI, as a string.