| Package | qnx.events |
| Class | public class NetworkResourceHeaderReceivedEvent |
| Inheritance | NetworkResourceHeaderReceivedEvent flash.events.Event |
QNXStageWebView object dispatches a NetworkResourceHeaderReceivedEvent object when
a header for the loading resource has been received and is being procesed.
This event is only received if the FILTER action was specified in a NetworkResourceRvquestedEvent.
Cancel to remove the header altogether.
There is only one type of NetworkResourceHeaderReceivedEvent:
NetworkResourceHeaderReceivedEvent.NETWORK_RESOURCE_HEADER_RECEIVED: dispatched when a header is being processed. Can be cancelled.See also
| Property | Defined By | ||
|---|---|---|---|
| headerValue : String
The value for the header key. | NetworkResourceHeaderReceivedEvent | ||
| key : String
The header key. | NetworkResourceHeaderReceivedEvent | ||
| streamId : int
The ID of the resource to be loaded. | NetworkResourceHeaderReceivedEvent | ||
| Method | Defined By | ||
|---|---|---|---|
NetworkResourceHeaderReceivedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, streamId:int = 0, key:String = null, value:String = null)
Creates an NetworkResourceHeaderReceivedEvent object. | NetworkResourceHeaderReceivedEvent | ||
clone():Event [override]
Duplicates an instance of an Event subclass. | NetworkResourceHeaderReceivedEvent | ||
toString():String [override]
Returns a String that contains all the properties of the NetworkResourceHeaderReceivedEvent object. | NetworkResourceHeaderReceivedEvent | ||
| Constant | Defined By | ||
|---|---|---|---|
| NETWORK_RESOURCE_HEADER_RECEIVED : String = networkResourceHeaderReceived [static]
Dispatched when a header has been received. | NetworkResourceHeaderReceivedEvent | ||
| headerValue | property |
headerValue:StringThe value for the header key.
public function get headerValue():String public function set headerValue(value:String):void| key | property |
key:StringThe header key.
public function get key():String public function set key(value:String):void| streamId | property |
streamId:intThe ID of the resource to be loaded.
public function get streamId():int public function set streamId(value:int):void| NetworkResourceHeaderReceivedEvent | () | Constructor |
public function NetworkResourceHeaderReceivedEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = true, streamId:int = 0, key:String = null, value:String = null)
Creates an NetworkResourceHeaderReceivedEvent object.
type:String | |
bubbles:Boolean (default = false) | |
cancelable:Boolean (default = true) | |
streamId:int (default = 0) | |
key:String (default = null) | |
value:String (default = null) |
| clone | () | method |
override public function clone():EventDuplicates an instance of an Event subclass.
Returns a new Event object that is a copy of the original instance of the Event object.
You do not normally call clone(); the EventDispatcher class calls it automatically
when you redispatch an event—that is, when you call dispatchEvent(event) from a handler
that is handling event.
The new Event object includes all the properties of the original.
When creating your own custom Event class, you must override the
inherited Event.clone() method in order for it to duplicate the
properties of your custom class. If you do not set all the properties that you add
in your event subclass, those properties will not have the correct values when listeners
handle the redispatched event.
Event |
| toString | () | method |
override public function toString():String
Returns a String that contains all the properties of the NetworkResourceHeaderReceivedEvent object.
The string is in the following format:
[NetworkResourceHeaderReceivedEvent type=value bubbles=value
cancelable=value eventPhase=value streamId=value key=value value=value
String |
| NETWORK_RESOURCE_HEADER_RECEIVED | Constant |
public static const NETWORK_RESOURCE_HEADER_RECEIVED:String = networkResourceHeaderReceivedDispatched when a header has been received. The header can be modified here.