public class Route extends Object
Constructor and Description |
---|
Route(AppController controller) |
Route(AppController controller,
String actionName,
HttpMethod method) |
Route(AppController controller,
String actionName,
String id,
HttpMethod method) |
Route(RouteBuilder builder,
HttpMethod method,
boolean custom) |
Modifier and Type | Method and Description |
---|---|
String |
getActionName() |
AppController |
getController() |
protected String |
getControllerClassName()
This is used in specs
|
protected String |
getControllerPath() |
String |
getId() |
HttpMethod |
getMethod() |
String |
getTargetAction()
In case of OPTIONS HTTP method, the controller action might be routed to
Controller#options , in which case
you can use this getter to see what was the original intended controller action. |
String |
getWildCardName() |
String |
getWildCardValue() |
protected boolean |
ignores(String path) |
boolean |
isCustom() |
boolean |
isWildCard() |
protected void |
setIgnoreSpecs(List<IgnoreSpec> ignoreSpecs) |
String |
toString() |
public Route(AppController controller, String actionName, HttpMethod method)
public Route(AppController controller, String actionName, String id, HttpMethod method)
public Route(RouteBuilder builder, HttpMethod method, boolean custom)
public Route(AppController controller)
public boolean isWildCard()
public String getWildCardName()
public String getWildCardValue()
public AppController getController()
public String getActionName()
public String getId()
public HttpMethod getMethod()
protected String getControllerPath()
protected String getControllerClassName()
protected void setIgnoreSpecs(List<IgnoreSpec> ignoreSpecs)
protected boolean ignores(String path)
public boolean isCustom()
public String getTargetAction()
Controller#options
, in which case
you can use this getter to see what was the original intended controller action.Copyright © 2019 JavaLite. All rights reserved.