Interface RedirectResponseCodeReceived

All Superinterfaces:
Event, NetworkEvent

public interface RedirectResponseCodeReceived extends NetworkEvent
An event indicating that a redirect response code (3xx) has been received for the URL request.
  • Method Summary

    Modifier and Type
    Method
    Description
    default Network
    Returns the Network instance initiated this event.
    default String
    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

      default Network network()
      Description copied from interface: NetworkEvent
      Returns the Network instance initiated this event.
      Specified by:
      network in interface NetworkEvent
    • urlRequest

      default UrlRequest 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

      default String 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.