public.javadoc.org.spincast.core.routing.RedirectRuleBuilder.html Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spincast-website Show documentation
Show all versions of spincast-website Show documentation
Source code for the https://www.spincast.org website.
RedirectRuleBuilder (org.spincast:spincast-framework 1.0.0 API)
org.spincast.core.routing
Interface RedirectRuleBuilder
-
- All Known Implementing Classes:
- RedirectRuleBuilderDefault
public interface RedirectRuleBuilder
Builder to create a redirection rule.
-
-
Method Summary
All Methods Instance Methods Abstract Methods
Modifier and Type
Method and Description
RedirectRuleBuilder
permanently()
The redirection will be permanent (301).
RedirectRuleBuilder
temporarily()
The redirection will be temporarily (302).
void
to(String newPathOrFullUrl)
The new path or full URL to redirect to.
-
-
Method Detail
-
permanently
RedirectRuleBuilder permanently()
The redirection will be permanent (301).
This is the default.
-
temporarily
RedirectRuleBuilder temporarily()
The redirection will be temporarily (302).
-
to
void to(String newPathOrFullUrl)
The new path or full URL to redirect to.
This ends the creation of the redirection rule and
save it to the router.
Copyright © 2019. All rights reserved.