Package org.glassfish.web.plugin.common
Class WebModuleConfigCommand
- java.lang.Object
-
- org.glassfish.web.plugin.common.WebModuleConfigCommand
-
- All Implemented Interfaces:
AdminCommand
- Direct Known Subclasses:
ListWebContextParamCommand,ListWebEnvEntryCommand,SetWebContextParamCommand,UnsetWebContextParamCommand,WebEnvEntryCommand
public abstract class WebModuleConfigCommand extends Object implements AdminCommand
Superclass of all web module config-related commands. All of these commands have the app-name (with perhaps /module-name appended) as a required argument.- Author:
- tjquinn
-
-
Field Summary
Fields Modifier and Type Field Description protected static LocalStringManagerImpllocalStrings
-
Constructor Summary
Constructors Constructor Description WebModuleConfigCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringappName()protected StringappNameAndOptionalModuleName()protected StringdescriptionValueOrNotSpecified(String value)protected Engineengine(ActionReport report)protected ActionReportfail(ActionReport report, Exception e, String msgKey, String defaultFormat, Object... args)protected ActionReportfail(ActionReport report, String msgKey, String defaultFormat, Object... args)protected StringmoduleName()Returns either the explicit module name (if the command argument specified one) or the app name.protected ActionReportsucceed(ActionReport report, String msgKey, String defaultFormat, Object... args)protected WebModuleConfigwebModuleConfig(ActionReport report)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.glassfish.api.admin.AdminCommand
execute
-
-
-
-
Field Detail
-
localStrings
protected static final LocalStringManagerImpl localStrings
-
-
Method Detail
-
webModuleConfig
protected WebModuleConfig webModuleConfig(ActionReport report)
-
engine
protected Engine engine(ActionReport report)
-
moduleName
protected String moduleName()
Returns either the explicit module name (if the command argument specified one) or the app name. An app can contain a module with the same name.- Returns:
- module name inferred from the command arguments
-
appName
protected String appName()
-
appNameAndOptionalModuleName
protected String appNameAndOptionalModuleName()
-
fail
protected ActionReport fail(ActionReport report, Exception e, String msgKey, String defaultFormat, Object... args)
-
fail
protected ActionReport fail(ActionReport report, String msgKey, String defaultFormat, Object... args)
-
succeed
protected ActionReport succeed(ActionReport report, String msgKey, String defaultFormat, Object... args)
-
-