public class URLRedirect extends Object implements Comparable<URLRedirect>
| Modifier and Type | Field and Description |
|---|---|
boolean |
controllable
indicates that this is controllable or not, if this is controllable
then all the other fields will be ignored and the redirects will be sent to the execute method
|
Class<?>[] |
methodArgTypes
(optional) These are the argument types found in the custom action method in order,
this should not be populated manually as any value in this will be overwritten
Must be set if the methodName is set |
String |
methodName
(optional) This will be non-null if there is a custom action method which was found or identified
by the annotation
EntityCustomAction or if the developer has defined this
explicitly |
TemplateParseUtil.PreProcessedTemplate |
outgoingPreProcessedTemplate |
String |
outgoingTemplate
(optional) the outgoing template to place the variables into,
leave null if using the methods
|
TemplateParseUtil.PreProcessedTemplate |
preProcessedTemplate |
String |
template
The incoming url template
the URL pattern to match AFTER the /prefix using {name} to indicate variables
Example: /{thing}/site/{siteId} will match the following URL: /myprefix/123/site/456, the variables will be {prefix => myprefix, thing => 123, siteId => 456} |
| Constructor and Description |
|---|
URLRedirect(String template)
Use this for controllable template matches only
|
URLRedirect(String template,
String outgoingTemplate) |
URLRedirect(String template,
String methodName,
Class<?>[] methodArgTypes) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(URLRedirect other) |
URLRedirect |
copy() |
static URLRedirect |
copy(URLRedirect redirect) |
boolean |
equals(Object obj) |
Method |
getMethod()
INTERNAL USE ONLY
|
int |
hashCode() |
void |
setMethod(Method m)
INTERNAL USE ONLY
|
void |
setTemplate(String template) |
String |
toString() |
public String template
public TemplateParseUtil.PreProcessedTemplate preProcessedTemplate
public String outgoingTemplate
public TemplateParseUtil.PreProcessedTemplate outgoingPreProcessedTemplate
public String methodName
EntityCustomAction or if the developer has defined this
explicitlypublic Class<?>[] methodArgTypes
public boolean controllable
public URLRedirect(String template)
template - public Method getMethod()
public void setMethod(Method m)
public void setTemplate(String template)
template - public URLRedirect copy()
public static URLRedirect copy(URLRedirect redirect)
redirect - public int compareTo(URLRedirect other)
compareTo in interface Comparable<URLRedirect>Copyright © 2003–2022 Sakai Project. All rights reserved.