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 Network
network()
Returns theNetwork
instance initiated this event.default String
newUrl()
Returns a string that represents the new location of the redirected URL request.default int
Returns the HTTP response code (e.g., 300, 301, and so on).default UrlRequest
Returns the URL request that has been redirected.
-
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 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.
-