| Package | vegas.net |
| Class | public class HTTPHost |
| Inheritance | HTTPHost Object |
| Implements | Cloneable, Equatable, Serializable |
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) ;
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| DEFAULT_SCHEME_NAME | property |
public static var DEFAULT_SCHEME_NAME:String = httpThe default scheme is "http".
| host | property |
host:StringDeterminates the host name. The host name is always normalized to lower case.
public function get host():String public function set host(value:String):void| port | property |
port:int
Determinates the port value. -1 indicates the scheme default port.
public function get port():int public function set port(value:int):void| scheme | property |
scheme:String
Determinates the scheme name. null indicates the {
public function get scheme():String public function set scheme(value:String):void| HTTPHost | () | Constructor |
public function HTTPHost(host:String, port:int = -1, scheme:String = null)Creates a new HTTPHost instance.
Parametershost: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 { |
| 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:*):BooleanCompares the specified object with this object for equality.
Parameters
o:* |
Boolean — true if the the specified object is equal with this object.
|
| toSource | () | method |
public function toSource(indent:int = 0):StringReturns the source code string representation of the object.
Parameters
indent:int (default = 0) |
String — the source code string representation of the object.
|
| toString | () | method |
public function toString():StringReturns a string containing a concise, human-readable description of the receiver.
ReturnsString — a string containing a concise, human-readable description of the receiver.
|
| toURI | () | method |
public function toURI():StringReturns the host URI, as a string.
ReturnsString — the host URI, as a string.
|