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 NetError
Returns the URL request error code.default boolean
isCached()
Returnstrue
if the response has been taken from cache.default Network
network()
Returns theNetwork
instance initiated this event.default int
Returns the HTTP response code or 0 if the request has been failed or canceled.default UrlRequestStatus
status()
Returns the status of the URL request.default UrlRequest
Returns the URL request that has been completed.
-
Method Details
-
network
Description copied from interface:NetworkEvent
Returns theNetwork
instance initiated this event.- Specified by:
network
in 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_UNSPECIFIED
value. -
isCached
default boolean isCached()Returnstrue
if the response has been taken from cache.- Since:
- 7.9
-