Package com.teamdev.jxbrowser.net.event
Interface RedirectResponseCodeReceived
- All Superinterfaces:
Event,NetworkEvent
An event indicating that a redirect response code (3xx) has been received for the URL request.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Networknetwork()Returns theNetworkinstance initiated this event.default StringnewUrl()Returns a string that represents the new location of the redirected URL request.default intReturns the HTTP response code (e.g., 300, 301, and so on).default UrlRequestReturns the URL request that has been redirected.
-
Method Details
-
network
Description copied from interface:NetworkEventReturns theNetworkinstance initiated this event.- Specified by:
networkin interfaceNetworkEvent
-
urlRequest
Returns the URL request that has been redirected. -
responseCode
default int responseCode()Returns the HTTP response code (e.g., 300, 301, and so on). Indicates the reason why the request has been redirected. -
newUrl
Returns a string that represents the new location of the redirected URL request. Represents the full text of the redirection URL, in UTF-8 format. Can be empty when the new URL is not considered as valid.
-