public interface RedirectRuleBuilder<R extends RequestContext<?>,W extends WebsocketContext<?>>
| Modifier and Type | Method and Description |
|---|---|
RedirectRuleBuilder<R,W> |
permanently()
The redirection will be permanent (301).
|
RedirectRuleBuilder<R,W> |
temporarily()
The redirection will be temporarily (302).
|
void |
to(RedirectHandler<R,W> handler)
Will called the specified
RedirectHandler
to generate the path to redirect to. |
void |
to(String newPathOrFullUrl)
The new path or full URL to redirect to.
|
RedirectRuleBuilder<R,W> permanently()
This is the default.
RedirectRuleBuilder<R,W> temporarily()
void to(String newPathOrFullUrl)
This ends the creation of the redirection rule and save it to the router.
void to(RedirectHandler<R,W> handler)
RedirectHandler
to generate the path to redirect to.
This ends the creation of the redirection rule and save it to the router.
Copyright © 2019. All rights reserved.