01: /*
02: * Created on 11 Jul 2006
03: */
04: package uk.org.ponder.rsf.viewstate;
05:
06: import java.util.Map;
07:
08: /** Infer from the supplied raw URL state the RSF viewID for the current
09: * request.
10: * @author Antranig Basman (antranig@caret.cam.ac.uk)
11: */
12:
13: public interface ViewIDInferrer {
14: /** Infer the corresponding viewID from the supplied URL information.
15: * @param pathinfo In a Servlet environment, the value returned by
16: * <code>HttpServletRequest.getPathInfo()</code>. In other environments
17: * (e.g. portlets), this value may be to some extent fictitious,
18: * but may be relied upon to maintain the same semantics.
19: *
20: * Corresponds to the value of the request scope bean <code>requestPathInfo</code>.
21: * @param requestmap The attribute map for the request. Unlikely to
22: * contain information defining the viewID, but included for completeness.
23: *
24: * Corresponds to the value of the request scope bean <code>requestMap</code>
25: * @return The inferred view ID.
26: */
27: public String inferViewID(String pathinfo, Map requestmap);
28: }
|