01: /*
02: * Created on 13 Aug 2006
03: */
04: package uk.org.ponder.rsf.templateresolver;
05:
06: import uk.org.ponder.rsf.view.ViewTemplate;
07:
08: /** A TemplateResolver which is aware of a particular association between
09: * internal resource paths (as provided to a ResourceLoader) and external
10: * URLs which may be resolved by the client.
11: * @author Antranig Basman (antranig@caret.cam.ac.uk)
12: *
13: */
14: public interface BaseAwareTemplateResolverStrategy {
15: /** The resource base from which access to the physical template file
16: * by the templating engine is to be based. The default path is "/"
17: * corresponding to the root of servlet context resources. Should begin
18: * with a /.
19: * see {@link ViewTemplate} for further comments.
20: *
21: */
22: public String getTemplateResourceBase();
23:
24: /** Returns the externally usable URL corresponding to the base path
25: * given from getTemplateResourceBase(). Will return <code>""</code> in
26: * the default case that this is a "local" resolver, that is, served from
27: * the current Servlet Container. This is to handle the case where
28: * the resource base should be determined from the incoming request.
29: */
30: public String getExternalURLBase();
31: }
|