01: package org.vraptor.url;
02:
03: import javax.servlet.http.HttpServletRequest;
04:
05: import org.vraptor.LogicException;
06: import org.vraptor.component.LogicMethod;
07: import org.vraptor.view.ViewManager;
08:
09: /**
10: * Locates the view manager for this request.
11: *
12: * @author Guilherme Silveira
13: */
14: public interface ViewLocator {
15:
16: /**
17: * Returns the selected view manager for this request.
18: * @throws LogicException
19: */
20: ViewManager locate(HttpServletRequest req, LogicMethod method,
21: ViewManager defaultViewManager) throws InvalidURLException,
22: LogicException;
23:
24: }
|