Package com.teamdev.jxbrowser.net.event
Interface RequestCompleted
- All Superinterfaces:
Event,NetworkEvent
An event indicating that the URL request has been completed.
-
Method Summary
Modifier and TypeMethodDescriptiondefault NetErrorReturns the URL request error code.default booleanisCached()Returnstrueif the response has been taken from cache.default Networknetwork()Returns theNetworkinstance initiated this event.default intReturns the HTTP response code or 0 if the request has been failed or canceled.default UrlRequestStatusstatus()Returns the status of the URL request.default UrlRequestReturns the URL request that has been completed.
-
Method Details
-
network
Description copied from interface:NetworkEventReturns theNetworkinstance initiated this event.- Specified by:
networkin interfaceNetworkEvent
-
urlRequest
Returns the URL request that has been completed. -
responseCode
default int responseCode()Returns the HTTP response code or 0 if the request has been failed or canceled. -
status
Returns the status of the URL request. -
errorCode
Returns the URL request error code. In case the request has failed, contains the error code of the network. Otherwise, has the defaultNetError.NET_ERROR_UNSPECIFIEDvalue. -
isCached
default boolean isCached()Returnstrueif the response has been taken from cache.- Since:
- 7.9
-