org.mozilla.webclient
Interface PageInfoListener

All Superinterfaces:
DocumentLoadListener, WebclientEventListener
All Known Implementing Classes:
AjaxListener

public interface PageInfoListener
extends DocumentLoadListener

This DocumentLoadListener subclass adds the ability to get detailed information on each event.

The eventData property of the DocumentLoadEvent instance will be a java.util.Map. The following entries may be present in this map for the following *_EVENT_MASK types in DocumentLoadEvent.

For all *_EVENT_MASK types

the map will contain an entry under the key "URI" without the quotes. This will be the fully qualified URI for the event.

For START_URL_LOAD type

The map will contain an entry under the key "method" without the quotes. This will be the request method for this event. The map will also contain an entry under the key "headers". This entry will be a java.util.Map of all the request headers.

For END_URL_LOAD type

The map will contain an entry under the key "method" without the quotes. This will be the request method for this event. The map will contain an entry under the key "status" without the quotes. This will be the response status string from the server, such as "200 OK". The map will also contain an entry under the key "headers". This entry will be a java.util.Map of all the response headers.

For START_AJAX_EVENT_MASK type

The map will contain the following keys and values:

headers
a java.util.Map of all the request headers.
method
the request method for this event.
readyState
a String of the numerical value of the XMLHTTPRequest readyState
For END_AJAX_EVENT_MASK type

The map will contain the following keys and values:

method
the request method for this event.
responseXML
a org.w3c.dom.Document instance of the response XML.
responseText
a String instance of the response Text.
status
the response status string from the server, such as "200 OK".
headers
a java.util.Map of all the response headers.
method
the request method for this event.
readyState
a String of the numerical value of the XMLHTTPRequest readyState


Method Summary
 
Methods inherited from interface org.mozilla.webclient.WebclientEventListener
eventDispatched
 



Copyright 2002-2007 Mozilla.org All Rights Reserved.