01: /*
02: * Created on Oct 25, 2005
03: */
04: package uk.org.ponder.rsf.viewstate.support;
05:
06: import uk.org.ponder.rsf.viewstate.BaseURLProvider;
07:
08: public class StaticBaseURLProvider implements BaseURLProvider {
09:
10: private String baseurl;
11: private String resourcebaseurl;
12:
13: /** Sets the default base URL for this view state handler, including trailing
14: * slash. However, if a URL has been registered for this request via
15: * ServletUtil.setRequestConsumerURLBase, that one will be used by preference.
16: */
17: public void setBaseURL(String baseurl) {
18: this .baseurl = baseurl;
19: }
20:
21: public String getBaseURL() {
22: return baseurl;
23: }
24:
25: /** Sets the default base URL for static resources, including trailing
26: * slash. As with baseURL, this may be overridden by ServletUtil.
27: */
28: public void setResourceBaseURL(String resourcebaseurl) {
29: this .resourcebaseurl = resourcebaseurl;
30: }
31:
32: public String getResourceBaseURL() {
33: return resourcebaseurl;
34: }
35:
36: }
|