|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sakaiproject.entitybroker.entityprovider.extension.URLRedirect
public class URLRedirect
Storage for the redirects
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
URLRedirect(String template)
Use this for controllable template matches only |
|
URLRedirect(String template,
String outgoingTemplate)
|
|
URLRedirect(String template,
String methodName,
Class<?>[] methodArgTypes)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
explicitly
public Class<?>[] methodArgTypes
public boolean controllable
| Constructor Detail |
|---|
public URLRedirect(String template)
template -
public URLRedirect(String template,
String outgoingTemplate)
public URLRedirect(String template,
String methodName,
Class<?>[] methodArgTypes)
| Method Detail |
|---|
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 boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||