Class 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 Detail

      • InternalRedirectHandler

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

      • 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