Class TemplateMap
- java.lang.Object
-
- org.sakaiproject.entitybroker.entityprovider.extension.TemplateMap
-
public class TemplateMap extends Object
An object to hold the incoming and outgoing templates in pairs, used withRedirectDefinable- Author:
- Aaron Zeckoski (azeckoski @ gmail.com)
-
-
Constructor Summary
Constructors Constructor Description TemplateMap(String incomingTemplate, String outgoingTemplate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetIncomingTemplate()StringgetOutgoingTemplate()voidsetIncomingTemplate(String incomingTemplate)voidsetOutgoingTemplate(String outgoingTemplate)
-
-
-
Constructor Detail
-
TemplateMap
public TemplateMap(String incomingTemplate, String outgoingTemplate)
- Parameters:
incomingTemplate- the URL template pattern to match including the /prefix using {name} to indicate variables
Example: /{prefix}/{thing}/site/{siteId} will match the following URL:
/myprefix/123/site/456, the variables will be {prefix => myprefix, thing => 123, siteId => 456}
NOTE: all incoming URL templates must start with "/{prefix}" (TemplateParseUtil.TEMPLATE_PREFIX)outgoingTemplate- the URL template pattern to fill with values from the incoming pattern, this can start with anything, but will be processed as an external redirect if it starts with "http" or "/" (unless it starts with "/{prefix}"), otherwise it will be processed as an internal forward
-
-