The network framework provides a base framework to handle network errors and provides a network monitoring service.
It consists of the following plug-ins:
Table 1. Network Layer Plug-ins
|com.ibm.rcp.net.faults(NetFaults)||The main framework handling all kinds of network Faults. It provides detector extension points for platform applications to extend. It provides handler extension points for platform and application components to extend. It has been enhanced to take a context parameter in the Fault object, the detectors and the handlers.|
|com.ibm.rcp.net.http ||Handles failures at the HTTP protocol level. New: change the WMC 2.6 URLHandler implementation to support Accounts integration and update NetFaults to support multiple server status concept.|
|com.ibm.rcp.offline (OfflineManager)||Manages the client state transitions and provide a service for querying the state of the client. New: Manages the multiple remote resources state transitions and provides a service for querying of the state of the remote resources.|
|com.ibm.rcp.net.status (NetStatus)||Detects the network adapter status|
|com.ibm.rcp.net.status.linux||Native implementation of NetStatus service on Linux®|
|com.ibm.rcp.net.status.win32||Native implementation of NetStatus service on Win32|
|com.ibm.rcp.os.events (OS Events)||Detects the OS power events like standby or hibernate|
|com.ibm.rcp.os.events.linux||Native implementation of OS events on Linux|
|com.ibm.rcp.os.events.win32||Native implementation of OS events on Win32|
|com.ibm.rcp.os.powerawareness||The interface layer on top of os.events and is to be used by other plug-ins to query the system power status|
|com.ibm.net.faults.default (platform default configuration)||The default configuration to order detectors and handlers. It also provides some default implementation of handlers and detectors.|
When an application throws a network error and calls DetectAndHandle.detectAndHandle()
, the NetFaults
component will walk through the detectors and handlers in the order specified by the default configuration or its customized configuration. The platform provides all the detectors in a predefined order. The application component can contribute its customized handlers.
The Http plug-in within the network layer replaces the default VM implementation of HTTP and HTTPS URLStreamHandler
's to be based on the Apache HTTP client.
Parent topic: Developing network aware applications: XPD622