01: /*
02: * Created on 13 Sep 2006
03: */
04: package uk.org.ponder.rsf.view;
05:
06: public interface BasedViewTemplate extends ViewTemplate {
07: /**
08: * Sets the path of the globally visible resource baseURL to which all
09: * relative URLs in this template will appear to be relative. For example, an
10: * image URL appearing in the template as ../images/bath.jpg will, when the
11: * template is rewritten into the served (generally ViewParameters) URL space,
12: * need to be rebased back into the resource space of the application.
13: *
14: * Now, in the default case, we are using ServletContext resources, which
15: * accept paths such as /content/templates/viewtemplate.html - therefore in
16: * this example the "rebased URL" would be
17: * http://server/context/content/templates . And hence the "fully served URL"
18: * at which the above image could be found would be derived by simply
19: * appending the relative URL above to this base URL. In Mond-speak,
20: * resourceBase is the "URL which appears to be ."
21: */
22: public void setRelativeResourceBase(String resbase);
23:
24: public String getRelativeResourceBase();
25:
26: /** Same semantics as
27: * {@link uk.org.ponder.rsf.templateresolver.BaseAwareTemplateResolverStrategy}
28: */
29: public void setExtResourceBase(String extresourcebase);
30:
31: public String getExtResourceBase();
32: }
|