public ForwardConfig[] findForwardConfigs() { return config.findForwardConfigs(); }
/** * <p>Initialize the forwards for the specified module.</p> * * @param config ModuleConfig information for this module * @throws ServletException if initialization cannot be performed */ protected void initModuleForwards(ModuleConfig config) throws ServletException { if (log.isDebugEnabled()) { log.debug("Initializing module path '" + config.getPrefix() + "' forwards"); } // Process forwards extensions. ForwardConfig[] forwards = config.findForwardConfigs(); for (int i = 0; i < forwards.length; i++) { ForwardConfig forward = forwards[i]; processForwardExtension(forward, config, null); } for (int i = 0; i < forwards.length; i++) { ForwardConfig forward = forwards[i]; // Verify that required fields are all present for the forward if (forward.getPath() == null) { handleValueRequiredException("path", forward.getName(), "global forward"); } } }
/** * <p>Return <code>true</code> if information returned by * <code>config.findForwardConfigs</code> is all valid; otherwise, log * error messages and return <code>false</code>.</p> */ protected boolean verifyForwardConfigs() { boolean ok = true; ForwardConfig[] fcs = config.findForwardConfigs(); for (int i = 0; i < fcs.length; i++) { String path = fcs[i].getPath(); if (path == null) { LOG.error(servlet.getInternal().getMessage("verifyForwardConfigs.missing", fcs[i].getName())); ok = false; } else if (!path.startsWith("/")) { LOG.error(servlet.getInternal().getMessage("verifyForwardConfigs.invalid", path, fcs[i].getName())); } } return (ok); }
/** * <p>Return <code>true</code> if information returned by * <code>config.findForwardConfigs</code> is all valid; * otherwise, log error messages and return <code>false</code>.</p> */ protected boolean verifyForwardConfigs() { boolean ok = true; ForwardConfig fcs[] = config.findForwardConfigs(); for (int i = 0; i < fcs.length; i++) { String path = fcs[i].getPath(); if (path == null) { log(servlet.getInternal().getMessage ("verifyForwardConfigs.missing", fcs[i].getName())); ok = false; } else if (!path.startsWith("/")) { log(servlet.getInternal().getMessage ("verifyForwardConfigs.invalid", path, fcs[i].getName())); } } return (ok); }
/** * <p> * Initialize the forwards for the specified module. * </p> * * @param config * ModuleConfig information for this module * @throws ServletException * if initialization cannot be performed */ protected void initModuleForwards(ModuleConfig config) throws ServletException { if (log.isDebugEnabled()) { log.debug("Initializing module path '" + config.getPrefix() + "' forwards"); } // Process forwards extensions. ForwardConfig[] forwards = config.findForwardConfigs(); for (int i = 0; i < forwards.length; i++) { ForwardConfig forward = forwards[i]; processForwardExtension(forward, config); } for (int i = 0; i < forwards.length; i++) { ForwardConfig forward = forwards[i]; // Verify that required fields are all present for the forward if (forward.getPath() == null) { handleValueRequiredException("path", forward.getName(), "global forward"); } } }