01: /*
02: * Created on 12-Mar-2006
03: */
04: package uk.org.ponder.rsf.viewstate;
05:
06: /** Renders "ultimate" URLs, that is, URLs for global navigation of an entire
07: * consumer portal to show a given resource, which may differ from the specific
08: * URL responsible for rendering the current request. This is broken out from
09: * ViewStateHandler to be able to incorporate possibly complex consumer-specific
10: * logic.
11: * @author Antranig Basman (antranig@caret.cam.ac.uk)
12: *
13: */
14:
15: public interface UltimateURLRenderer {
16: public String getConsumerType();
17:
18: /** @param consumerultimatebaseURL The URL entered in the ConsumerInfo structure
19: * for this request under <code>externalURL</code>.
20: * @param viewparams The view parameters for this request
21: * @param vsh The ViewStateHandler active for this request - this in general
22: * will be a callback to the caller, since the required URL will probably be
23: * very directly related to the FullURL value that the VSH already computes.
24: * @return The required ultimate URL.
25: */
26: public String getUltimateURL(String consumerultimatebaseURL,
27: ViewParameters viewparams, ViewStateHandler vsh);
28: }
|