Package com.sun.enterprise.admin.util
Class CachedCommandModel
- java.lang.Object
-
- org.glassfish.api.admin.CommandModel
-
- com.sun.enterprise.admin.util.CommandModelData
-
- com.sun.enterprise.admin.util.CachedCommandModel
-
public class CachedCommandModel extends CommandModelData
Stores ETag with command model.- Author:
- mmares
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.sun.enterprise.admin.util.CommandModelData
CommandModelData.ParamData, CommandModelData.ParamModelData
-
Nested classes/interfaces inherited from class org.glassfish.api.admin.CommandModel
CommandModel.ParamModel
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.admin.util.CommandModelData
dashOk, managedJob
-
-
Constructor Summary
Constructors Constructor Description CachedCommandModel(String name)
CachedCommandModel(String name, String eTag)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static String
computeETag(CommandModel cm)
String
geteTag()
Returns the etagString
getETag()
Returns the eTag.String
getUsage()
boolean
isAddedUploadOption()
void
setAddedUploadOption(boolean addedUploadOption)
void
seteTag(String eTag)
void
setETag(String eTag)
void
setUsage(String usage)
-
Methods inherited from class com.sun.enterprise.admin.util.CommandModelData
add, getClusteringAttributes, getCommandClass, getCommandName, getLocalizedDescription, getModelFor, getParametersNames, getUsageText, isManagedJob, unknownOptionsAreOperands
-
Methods inherited from class org.glassfish.api.admin.CommandModel
getParameters, getParamName
-
-
-
-
Method Detail
-
getETag
public String getETag()
Returns the eTag. If it is null then the value is computed and returned- Returns:
- the etag
-
setETag
public void setETag(String eTag)
-
geteTag
public String geteTag()
Returns the etag- Returns:
- the etag, which may be null if not set
-
seteTag
public void seteTag(String eTag)
-
getUsage
public String getUsage()
-
setUsage
public void setUsage(String usage)
-
isAddedUploadOption
public boolean isAddedUploadOption()
-
setAddedUploadOption
public void setAddedUploadOption(boolean addedUploadOption)
-
computeETag
public static String computeETag(CommandModel cm)
-
-