LayoutView/src/io/github/svanderburg/layout/view/IndexServlet.java
protected static Route determineRoute(Application application, HttpServletRequest req, HttpServletResponse resp)
	{
		Route route;
		HashMap<String, Object> params = new HashMap<String, Object>();
		HashMap<String, String> query = new HashMap<String, String>();
		String acceptLanguage = req.getHeader("Accept-Language");
		params.put("query", query);
		params.put("acceptLanguage", acceptLanguage);
		
		try
		{
			route = application.determineRoute(req.getRequestURI(), req.getContextPath(), req.getServletPath(), params);
			req.setAttribute("query", query);
		}
		catch(PageForbiddenException ex)
		{
			resp.setStatus(HttpServletResponse.SC_FORBIDDEN);
			route = application.determine403Route(params);
		}
		catch(PageNotFoundException ex)
		{
			resp.setStatus(HttpServletResponse.SC_NOT_FOUND);
			route = application.determine404Route(params);
		}
		
		return route;
	}
/**
	 * Looks up the currently requested page.
	 * If the page cannot be found it provides the 404 error page.
	 * If the page is not accessible it provides the 403 error page.
	 * 
	 * @param application Encoding of the web application layout and pages
	 * @param req HTTP request object that contains request parameters
	 * @param resp HTTP response object to which the output is sent
	 * @return Page to be currently displayed
	 */
Looks up the currently requested page.
If the page cannot be found it provides the 404 error page.
If the page is not accessible it provides the 403 error page.

@param application Encoding of the web application layout and pages
@param req HTTP request object that contains request parameters
@param resp HTTP response object to which the output is sent
@return Page to be currently displayed
Looks up the currently requested page . If the page cannot be found it provides the 404 error page . If the page is not accessible it provides the 403 error page . @param application Encoding of the web application layout and pages @param req HTTP request object that contains request parameters @param resp HTTP response object to which the output is sent @return Page to be currently displayed
protected static Route determineRoute(Application application, HttpServletRequest req, HttpServletResponse resp)
	{
		Route route;
		HashMap<String, Object> params = new HashMap<String, Object>();
		HashMap<String, String> query = new HashMap<String, String>();
		String acceptLanguage = req.getHeader("Accept-Language");
		params.put("query", query);
		params.put("acceptLanguage", acceptLanguage);
		try
		{
			route = application.determineRoute(req.getRequestURI(), req.getContextPath(), req.getServletPath(), params);
			req.setAttribute("query", query);
		}
		catch(PageForbiddenException ex)
		{
			resp.setStatus(HttpServletResponse.SC_FORBIDDEN);
			route = application.determine403Route(params);
		}
		catch(PageNotFoundException ex)
		{
			resp.setStatus(HttpServletResponse.SC_NOT_FOUND);
			route = application.determine404Route(params);
		}
		return route;
	}
protected static Route determineRoute ( Application application , HttpServletRequest req , HttpServletResponse resp ) { Route route ; HashMap < String , Object > params = new HashMap < String , Object > ( ) ; HashMap < String , String > query = new HashMap < String , String > ( ) ; String acceptLanguage = req . getHeader ( "Accept-Language" ) ; params . put ( "query" , query ) ; params . put ( "acceptLanguage" , acceptLanguage ) ; try { route = application . determineRoute ( req . getRequestURI ( ) , req . getContextPath ( ) , req . getServletPath ( ) , params ) ; req . setAttribute ( "query" , query ) ; } catch ( PageForbiddenException ex ) { resp . setStatus ( HttpServletResponse . SC_FORBIDDEN ) ; route = application . determine403Route ( params ) ; } catch ( PageNotFoundException ex ) { resp . setStatus ( HttpServletResponse . SC_NOT_FOUND ) ; route = application . determine404Route ( params ) ; } return route ; }
Looks up the currently requested page.
Looks up the currently requested page .