public interface RedirectControllable extends Redirectable
EntityProvider interfaceRedirectable, there is also a capability
for handling simple redirects at RedirectDefinable| Modifier and Type | Method and Description |
|---|---|
String[] |
defineHandledTemplatePatterns()
Defines all the URL patterns that will be matched and passed through to
#handleRedirects(String, String[], Map)
NOTE: /{prefix}/ must be included as the start of the template |
String |
handleRedirects(String matchedTemplate,
String incomingURL,
String[] incomingSegments,
Map<String,String> incomingVariables)
Explicitly handles all the incoming URLs which match the patterns given by
defineHandledTemplatePatterns()
do some processing to turn it into an outgoing URL OR just do some processing OR
indicate that a failure has occurred |
getEntityPrefixString[] defineHandledTemplatePatterns()
#handleRedirects(String, String[], Map)
NOTE: /{prefix}/ must be included as the start of the templateString handleRedirects(String matchedTemplate, String incomingURL, String[] incomingSegments, Map<String,String> incomingVariables)
defineHandledTemplatePatterns()
do some processing to turn it into an outgoing URL OR just do some processing OR
indicate that a failure has occurredmatchedPattern - the template pattern that was matchedincomingURL - the incoming URL that was matched by a URL patternincomingSegments - incoming URL segments, Example: /prefix/123/apple => {'prefix','123','apple'}incomingVariables - a map of the values in the {} (prefix is always included),
Example: pattern: /prefix/{thing}/apple, url: /prefix/123/apple, would yield: 'thing' => '123'IllegalStateException - if there is a failure, this will cause the server to return a redirect failureCopyright © 2007–2019 Sakai Project. All rights reserved.