/** * Returns the adjusted view name as determined by subclass implementation. * In the case where a requested URL is prefixed with "redirect:" or * "forward:", the view name will not be adjusted. * @param viewName the name of the view before device resolution * @return the adjusted view name * @see #getDeviceViewNameInternal(String) */ protected String getDeviceViewName(String viewName) { // Check for special "redirect:" prefix. if (viewName.startsWith(REDIRECT_URL_PREFIX)) { return viewName; } // Check for special "forward:" prefix. if (viewName.startsWith(FORWARD_URL_PREFIX)) { return viewName; } return getDeviceViewNameInternal(viewName); }
/** * Returns the adjusted view name as determined by subclass implementation. * In the case where a requested URL is prefixed with "redirect:" or * "forward:", the view name will not be adjusted. * @param viewName the name of the view before device resolution * @return the adjusted view name * @see #getDeviceViewNameInternal(String) */ protected String getDeviceViewName(String viewName) { // Check for special "redirect:" prefix. if (viewName.startsWith(REDIRECT_URL_PREFIX)) { return viewName; } // Check for special "forward:" prefix. if (viewName.startsWith(FORWARD_URL_PREFIX)) { return viewName; } return getDeviceViewNameInternal(viewName); }