public class Route extends Object
Constructor and Description |
---|
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 |
---|---|
Method |
getActionMethod() |
String |
getActionName() |
Class |
getArgumentClass() |
AppController |
getController() |
protected String |
getControllerClassName()
This is used in specs
|
protected String |
getControllerPath() |
HttpMethod |
getHttpMethod() |
String |
getId() |
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. |
boolean |
hasArgument() |
protected boolean |
ignores(String path) |
boolean |
isCustom() |
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 AppController getController()
public Method getActionMethod()
public Class getArgumentClass()
public boolean hasArgument()
public String getActionName()
public String getId()
public HttpMethod getHttpMethod()
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 © 2020 JavaLite. All rights reserved.