Package org.sakaiproject.entitybroker.util
-
Interface Summary Interface Description ClassLoaderReporter Allows a bean to report the classloader that is appropriate for it and will be used for dispatching into this beans environment, this is only needed in advanced cases and should not normally be implemented
The primary use case here is to allow someone to set their classloader when they are using a proxied bean or the implementation class is in the wrong classloader
This is primarily used in the case of theHttpServletAccessProviderorEntityViewAccessProviderand the implementations of those should also implement this interface to be able to specify the classloader -
Class Summary Class Description EntityResponse This is here to contain the information we get back from an entity (http) request fired by theEntityBroker.fireEntityRequest(String, String, String, Map, Object)method
This object and the data in it should be considered immutableSakaiToolData This contains an abstraction of the information about a tool in SakaiTemplateParseUtil Utility class to handle the URL template parsing (entity template parsing)TemplateParseUtil.PreProcessedTemplate Contains the data for templates, each template must have a template key and the template itselfTemplateParseUtil.ProcessedTemplate Contains the processed template with the values from the processed input string that was determined to be related to this templateTemplateParseUtil.Template Represents a parseable template (which is basically a key and the template string), the array which defines the set of template keys isTemplateParseUtil.PARSE_TEMPLATE_KEYS
Rules for parse templates: 1) "{","}", andTemplateParseUtil.SEPARATORare special characters and must be used as indicated only 2) Must begin with aTemplateParseUtil.SEPARATOR, must not end with aTemplateParseUtil.SEPARATOR3) must begin with "/{prefix}" (use theTemplateParseUtil.SEPARATORandTemplateParseUtil.PREFIXconstants) 3) each {var} can only be used once in a template 4) {var} can never touch each other (i.e /{var1}{var2}/{id} is invalid) 5) each {var} can only have the chars fromTemplateParseUtil.VALID_VAR_CHARS6) parse templates can only have the chars fromTemplateParseUtil.VALID_TEMPLATE_CHARS7) Empty braces ({}) cannot appear in the template