if (srFrozen == null) return null;
return srFrozen.thaw();
}
public ModelAndView selectResultsView(HttpServletRequest request) {
SearchResultsFrozen srFrozen = searchResultsFrozen(request);
LOGGER.debug("In selectResultsView with results = " + srFrozen);
if (srFrozen == null) {
LOGGER.debug("No results\n\tContextPath: " + request.getContextPath() +
"\n\tPathInfo: " + request.getPathInfo() +
"\n\tPathTranslated: " + request.getPathTranslated() +
"\n\tRequestURI: " + request.getRequestURI() +
"\n\tRequestURL: " + request.getRequestURL() +
"\n");
String URL = getDefaultViewURL();
LOGGER.debug("Using default view URL=" + URL);
return new ModelAndView(new RedirectView(URL));
} else {
switch (srFrozen.getType()) {
case MATRIX:
LOGGER.debug("Issuing new RedirectView pointing to matrixSearch.html");
return new ModelAndView(new RedirectView("matrixSearch.html"));
case STUDY:
LOGGER.debug("Issuing new RedirectView pointing to studySearch.html");