套件 | mx.netmon |
類別 | public class NetworkMonitor |
繼承 | NetworkMonitor Object |
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
屬性 | 定義自 | ||
---|---|---|---|
adjustNetConnectionURLImpl : Function [靜態]
To be assigned by mix-in. | NetworkMonitor | ||
adjustURLRequestImpl : Function [靜態]
To be assigned by mix-in. | NetworkMonitor | ||
constructor : Object
類別物件的參照或是特定物件實體的建構函數。 | Object | ||
isMonitoringImpl : Function [靜態]
To be assigned by mix-in. | NetworkMonitor | ||
monitorEventImpl : Function [靜態]
To be assigned by mix-in. | NetworkMonitor | ||
monitorFaultImpl : Function [靜態]
To be assigned by mix-in. | NetworkMonitor | ||
monitorInvocationImpl : Function [靜態]
To be assigned by mix-in. | NetworkMonitor | ||
monitorResultImpl : Function [靜態]
To be assigned by mix-in. | NetworkMonitor |
方法 | 定義自 | ||
---|---|---|---|
[靜態]
Adjust the URL for NetConnectionChannel and HTTPChannel Requests
so that it goes through the monitor. | NetworkMonitor | ||
[靜態]
Adjust the URLRequest so that it goes through the monitor. | NetworkMonitor | ||
指出物件是否有已定義的指定屬性。 | Object | ||
[靜態]
Returns true if the monitor is linked and monitoring. | NetworkMonitor | ||
指出 Object 類別的實體是否位於指定為參數的物件原型鏈中。 | Object | ||
[靜態]
Tell the monitor that an event occurred. | NetworkMonitor | ||
[靜態]
Tell the monitor that a fault occurred. | NetworkMonitor | ||
[靜態]
Tell the monitor that an invocation is occuring. | NetworkMonitor | ||
[靜態]
Tell the monitor that a result was returned. | NetworkMonitor | ||
指出指定的屬性是否存在,以及是否可列舉。 | Object | ||
為迴圈作業設定動態屬性的可用性。 | Object | ||
傳回代表此物件的字串,根據地區特定慣例進行格式化。 | Object | ||
會傳回指定之物件的字串形式。 | Object | ||
會傳回指定之物件的基本值。 | Object |
adjustNetConnectionURLImpl | 屬性 |
public static var adjustNetConnectionURLImpl:Function
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
To be assigned by mix-in.
adjustURLRequestImpl | 屬性 |
public static var adjustURLRequestImpl:Function
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
To be assigned by mix-in.
isMonitoringImpl | 屬性 |
public static var isMonitoringImpl:Function
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
To be assigned by mix-in.
monitorEventImpl | 屬性 |
public static var monitorEventImpl:Function
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
To be assigned by mix-in.
monitorFaultImpl | 屬性 |
public static var monitorFaultImpl:Function
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
To be assigned by mix-in.
monitorInvocationImpl | 屬性 |
public static var monitorInvocationImpl:Function
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
To be assigned by mix-in.
monitorResultImpl | 屬性 |
public static var monitorResultImpl:Function
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
To be assigned by mix-in.
adjustNetConnectionURL | () | 方法 |
public static function adjustNetConnectionURL(rootUrl:String, url:String):String
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Adjust the URL for NetConnectionChannel and HTTPChannel Requests so that it goes through the monitor. Returns the modified url.
參數
rootUrl:String — to adjust.
| |
url:String |
String |
adjustURLRequest | () | 方法 |
public static function adjustURLRequest(urlRequest:URLRequest, rootURL:String, correlationID:String):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Adjust the URLRequest so that it goes through the monitor. The URLRequest sent to the monitor will have two headers:
actualHostPort
: The realhost:port
for the URL.correlationID
: The correlationID for the request in case it's from messaging (Image/Loader requests need to create their own correlationIDs)
參數
urlRequest:URLRequest — The URLRequest to adjust.
(Relative URLs are supported.)
| |
rootURL:String — Computes an absolute URL from the relative URL.
If necessary, pass the SWF file's URL as this value.
| |
correlationID:String — The correlationID that may be used
for associated events.
|
isMonitoring | () | 方法 |
monitorEvent | () | 方法 |
public static function monitorEvent(event:Event, correlationID:String):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Tell the monitor that an event occurred.
This may be used by the Loader to monitor security and IO errors.
It should not be used for the Loader's complete
event.
參數
event:Event — The event that is about to occur (or occurred).
| |
correlationID:String — The correlationID to associate with other events
or the request.
|
monitorFault | () | 方法 |
public static function monitorFault(faultMessage:Object, actualFault:Object):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Tell the monitor that a fault occurred.
參數
faultMessage:Object — The Message that came back indicating the result.
It be null if this was due to an invocation failure.
(It is untyped here to avoid linking in the dependency.)
| |
actualFault:Object — The Fault that occurred.
(It is untyped here to avoid linking in the dependency.)
|
monitorInvocation | () | 方法 |
public static function monitorInvocation(id:String, invocationMessage:Object, messageAgent:Object):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Tell the monitor that an invocation is occuring.
參數
id:String — The id of the tag causing the invocation
if it can be determined.
| |
invocationMessage:Object — The Message that will be sent across the wire.
(It is untyped here to avoid linking in the dependency.)
| |
messageAgent:Object |
monitorResult | () | 方法 |
public static function monitorResult(resultMessage:Object, actualResult:Object):void
語言版本: | ActionScript 3.0 |
產品版本: | Flex 3 |
執行階段版本: | Flash Player 9, AIR 1.1 |
Tell the monitor that a result was returned.
參數
resultMessage:Object — The Message that came back indicating the result.
(It is untyped here to avoid linking in the dependency.)
| |
actualResult:Object — the decoded result
|
Tue Jun 12 2018, 03:47 PM Z