|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.webrenderer.event.NetworkAdapter
An abstract adapter class for receiving network events. The methods in this class are empty. This class exists as convenience for creating listener objects.
Extend this class to create a NetworkEvent listener and
override the methods for the events of interest. (If you implement the
NetworkListener interface, you have to define all of the methods
in it. This abstract class defines null methods for them all, so
you only have to define methods for events you care about.)
Create a listener object using the extended class and then register it
with a browser using the browser's addNetworkListener method.
When a network event occurs, the relevant method in the listener object is
invoked and the NetworkEvent is passed to it.
| Constructor Summary | |
NetworkAdapter()
|
|
| Method Summary | |
void |
onDocumentComplete(NetworkEvent e)
Invoked when a document stops loading in a browser. |
void |
onDocumentLoad(NetworkEvent e)
Invoked when a document starts loading in a browser. |
void |
onHTTPInterceptHeaders(NetworkEvent e)
Invoked from an IBrowserCanvas before an HTTP request is sent. |
void |
onHTTPResponse(NetworkEvent e)
Invoked from an IMozillaBrowserCanvas when Http Response data is sent back from a request. |
void |
onNetworkError(NetworkEvent e)
Invoked when an error occurs on the network. |
void |
onNetworkStatus(NetworkEvent e)
Invoked when the status of the network has changed. |
void |
onProgressChange(NetworkEvent e)
Invoked when the progress of a document download changes. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public NetworkAdapter()
| Method Detail |
public void onHTTPInterceptHeaders(NetworkEvent e)
NetworkListenerIBrowserCanvas before an HTTP request is sent.
Using this event you can modify the HTTP Request Headers before the request is sent.
onHTTPInterceptHeaders in interface NetworkListenerpublic void onProgressChange(NetworkEvent e)
NetworkListener
onProgressChange in interface NetworkListenerpublic void onDocumentLoad(NetworkEvent e)
NetworkListener
onDocumentLoad in interface NetworkListenerpublic void onDocumentComplete(NetworkEvent e)
NetworkListener
onDocumentComplete in interface NetworkListenerpublic void onNetworkStatus(NetworkEvent e)
NetworkListener
onNetworkStatus in interface NetworkListenerpublic void onNetworkError(NetworkEvent e)
NetworkListener
onNetworkError in interface NetworkListenerpublic void onHTTPResponse(NetworkEvent e)
NetworkListenerIMozillaBrowserCanvas when Http Response data is sent back from a request.
IIEBrowserCanvas
(an IBrowserCanvas created from BrowserFactory.spawnInternetExplorer)
onHTTPResponse in interface NetworkListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||