public class RedirectRuleBuilderDefault<R extends RequestContext<?>,W extends WebsocketContext<?>> extends Object implements RedirectRuleBuilder<R,W>
| Modifier and Type | Field and Description |
|---|---|
protected static org.slf4j.Logger |
logger |
| Constructor and Description |
|---|
RedirectRuleBuilderDefault(Router<R,W> router,
String oldPath,
SpincastRouterConfig spincastRouterConfig,
SpincastRoutingUtils spincastRoutingUtils) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addRedirectHandler(Handler<R> handler) |
protected String |
getOldPath() |
protected Router<R,W> |
getRouter() |
protected SpincastRouterConfig |
getSpincastRouterConfig() |
protected SpincastRoutingUtils |
getSpincastRoutingUtils() |
protected boolean |
isPermanently() |
RedirectRuleBuilder<R,W> |
permanently() |
RedirectRuleBuilder<R,W> |
temporarily() |
protected void |
throwRedirect(R context,
String newPathOrFullUrl) |
void |
to(RedirectHandler<R,W> handler) |
void |
to(String newPathOrFullUrl) |
public RedirectRuleBuilderDefault(Router<R,W> router, String oldPath, SpincastRouterConfig spincastRouterConfig, SpincastRoutingUtils spincastRoutingUtils)
protected String getOldPath()
protected SpincastRouterConfig getSpincastRouterConfig()
protected SpincastRoutingUtils getSpincastRoutingUtils()
protected boolean isPermanently()
public RedirectRuleBuilder<R,W> permanently()
permanently in interface RedirectRuleBuilder<R extends RequestContext<?>,W extends WebsocketContext<?>>public RedirectRuleBuilder<R,W> temporarily()
temporarily in interface RedirectRuleBuilder<R extends RequestContext<?>,W extends WebsocketContext<?>>public void to(String newPathOrFullUrl)
to in interface RedirectRuleBuilder<R extends RequestContext<?>,W extends WebsocketContext<?>>public void to(RedirectHandler<R,W> handler)
to in interface RedirectRuleBuilder<R extends RequestContext<?>,W extends WebsocketContext<?>>Copyright © 2019. All rights reserved.