Package com.vaadin.flow.router.internal
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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InternalRedirectHandler(Location target)
Creates a new redirect handler for the provided location.
-
-
-
Constructor Detail
-
InternalRedirectHandler
public InternalRedirectHandler(Location target)
Creates a new redirect handler for the provided location.- Parameters:
target
- the target of the redirect, notnull
-
-
Method Detail
-
handle
public int handle(NavigationEvent event)
Description copied from interface:NavigationHandler
Handles the navigation event.- Specified by:
handle
in interfaceNavigationHandler
- Parameters:
event
- the navigation event to handle- Returns:
- the HTTP status code to return to the client if handling an initial rendering request
-
-