/** * Freeze the configuration of this component. */ public void freeze() { configured = true; FormPropertyConfig[] fpconfigs = findFormPropertyConfigs(); for (int i = 0; i < fpconfigs.length; i++) { fpconfigs[i].freeze(); } }
/** * Freeze the configuration of this component. */ public void freeze() { super.freeze(); FormPropertyConfig[] fpconfigs = findFormPropertyConfigs(); for (int i = 0; i < fpconfigs.length; i++) { fpconfigs[i].freeze(); } }
protected void addProperty(String name, String type) { FormPropertyConfig propConfig = new FormPropertyConfig(); propConfig.setName(name); propConfig.setType(type); formBeanConfig.addFormPropertyConfig(propConfig); }
/** * <p>Construct a new instance based on the values of another ActionForward.</p> * * @param copyMe An ActionForward instance to copy * @since Struts 1.2.1 */ public ActionForward(ActionForward copyMe) { this(copyMe.getName(),copyMe.getPath(),copyMe.getRedirect(),copyMe.getModule()); setContextRelative(copyMe.getContextRelative()); }
/** * Return the prefix of the ModuleConfig that this PlugIn is associated with. * @see org.apache.struts.config.ModuleConfig#getPrefix */ public final String getModulePrefix() { return this.moduleConfig.getPrefix(); }
protected void addForwardConfig(ModuleConfig config, String path, ActionConfig actionConfig) { ForwardConfig forwardConfig = (ForwardConfig) ClassUtil.newInstance(config.getActionForwardClass()); forwardConfig.setName(Constants.SUCCESS); forwardConfig.setPath(path); actionConfig.addForwardConfig(forwardConfig); }
/** * Freeze the configuration of this action. */ public void freeze() { configured = true; ExceptionConfig[] econfigs = findExceptionConfigs(); for (int i = 0; i < econfigs.length; i++) { econfigs[i].freeze(); } ForwardConfig[] fconfigs = findForwardConfigs(); for (int i = 0; i < fconfigs.length; i++) { fconfigs[i].freeze(); } }
private boolean registeredActionForm(ModuleConfig config, FormBeanConfig formConfig) { return (config.findFormBeanConfig(formConfig.getName()) != null); }
/** * <p>Get the original path without the parameters added at runtime.</p> * * @return the original path as configured. */ public String getOriginalPath() { return super.getPath(); }
/** * Return the URL for the specified ActionMapping, * otherwise return <code>null</code>. * * @param path Name given to local or global forward. */ public String getAction(String path) { return getEncodeURL(getActionMappingURL(path)); }
/** * Return the <code>DynaActionFormClass</code> instance for the specified form bean * configuration instance. */ public static DynaActionFormClass createDynaActionFormClass(FormBeanConfig config) { return config.getDynaActionFormClass(); }
/** * Wrapper for getAction(String) * * @param path Name given to local or global forward. */ public String action(String path) { return getAction(path); }
/** * Wrapper for getMessage(String,Object[]) * * @param key Message key to be looked up and returned * @param args Replacement parameters for this message */ public String message(String key, Object args[]) { return getMessage(key, args); }
/** * Wrapper for getLink(String) * * @param name Name given to local or global forward. */ public String link(String name) { return getLink(name); }
/** * The controller configuration object for this module. */ public ControllerConfig getControllerConfig() { if (this.controllerConfig == null) { this.controllerConfig = new ControllerConfig(); } return (this.controllerConfig); }
public ConfigHelper(ServletContext application, HttpServletRequest request, HttpServletResponse response) { super(); this.setResources(application, request, response); }
/** * <p> Freeze the configuration of this action. </p> */ public void freeze() { super.freeze(); ExceptionConfig[] econfigs = findExceptionConfigs(); for (int i = 0; i < econfigs.length; i++) { econfigs[i].freeze(); } ForwardConfig[] fconfigs = findForwardConfigs(); for (int i = 0; i < fconfigs.length; i++) { fconfigs[i].freeze(); } }
/** * <p> Return the URL for the specified ActionMapping, otherwise return * <code>null</code>. </p> * * @param path Name given to local or global forward. */ public String getAction(String path) { return getEncodeURL(getActionMappingURL(path)); }
/** * Return the <code>DynaActionFormClass</code> instance for the specified * form bean configuration instance. * * @param config The config for which the class should be created. * @return The instance for the specified form bean config. */ public static DynaActionFormClass createDynaActionFormClass( FormBeanConfig config) { return config.getDynaActionFormClass(); }
/** * <p> Wrapper for getAction(String) </p> * * @param path Name given to local or global forward. */ public String action(String path) { return getAction(path); } }