/** * Returns the parsed mode object if the string representation matches, or <code>null</code> if not.<p> * * @param mode the string representation to parse * * @return the parsed mode object */ public static CmsServletContainerCfgMode valueOf(String mode) { if (mode == null) { return null; } if (mode.equalsIgnoreCase(MODE_NONE.getMode())) { return MODE_NONE; } if (mode.equalsIgnoreCase(MODE_MANUAL.getMode())) { return MODE_MANUAL; } if (mode.equalsIgnoreCase(MODE_AUTO.getMode())) { return MODE_AUTO; } return null; }
if (!servletContainerSettings.getMode().isNone()) { Element servletContainerSettingsElem = systemElement.addElement(N_SERVLETCONTAINERSETTINGS); servletContainerSettingsElem.addAttribute(A_MODE, servletContainerSettings.getMode().getMode()); if (!servletContainerSettings.getMode().isAuto()) { servletContainerSettingsElem.addElement(N_PREVENTRESPONSEFLUSH).addText( "" + servletContainerSettings.isPreventResponseFlush());
if (!servletContainerSettings.getMode().isNone()) { Element servletContainerSettingsElem = systemElement.addElement(N_SERVLETCONTAINERSETTINGS); servletContainerSettingsElem.addAttribute(A_MODE, servletContainerSettings.getMode().getMode()); if (!servletContainerSettings.getMode().isAuto()) { servletContainerSettingsElem.addElement(N_PREVENTRESPONSEFLUSH).addText( "" + servletContainerSettings.isPreventResponseFlush());
/** * Returns the parsed mode object if the string representation matches, or <code>null</code> if not.<p> * * @param mode the string representation to parse * * @return the parsed mode object */ public static CmsServletContainerCfgMode valueOf(String mode) { if (mode == null) { return null; } if (mode.equalsIgnoreCase(MODE_NONE.getMode())) { return MODE_NONE; } if (mode.equalsIgnoreCase(MODE_MANUAL.getMode())) { return MODE_MANUAL; } if (mode.equalsIgnoreCase(MODE_AUTO.getMode())) { return MODE_AUTO; } return null; }
/** * Sets the mode from the configuration.<p> * * @param configValue the mode to set */ public void setMode(String configValue) { m_mode = CmsServletContainerCfgMode.valueOf(configValue); }
/** * Sets the mode from the configuration.<p> * * @param configValue the mode to set */ public void setMode(String configValue) { m_mode = CmsServletContainerCfgMode.valueOf(configValue); }