Class InternalRedirectHandler

java.lang.Object
com.vaadin.flow.router.internal.InternalRedirectHandler
All Implemented Interfaces:
NavigationHandler, Serializable

public class InternalRedirectHandler extends Object implements NavigationHandler
Handles navigation by redirecting the user to some location in the application.

For internal use only. May be renamed or removed in a future release.

Since:
1.0
Author:
Vaadin Ltd
See Also:
  • Constructor Details

    • InternalRedirectHandler

      public InternalRedirectHandler(Location target)
      Creates a new redirect handler for the provided location.
      Parameters:
      target - the target of the redirect, not null
  • Method Details

    • handle

      public int handle(NavigationEvent event)
      Description copied from interface: NavigationHandler
      Handles the navigation event.
      Specified by:
      handle in interface NavigationHandler
      Parameters:
      event - the navigation event to handle
      Returns:
      the HTTP status code to return to the client if handling an initial rendering request