FileDocCategorySizeDatePackage
SSLCommand.javaAPI DocGlassfish v2 API3062Fri May 04 22:25:12 BST 2007com.sun.enterprise.cli.commands

SSLCommand

public class SSLCommand extends GenericCommand

Fields Summary
private static final String
TYPE_OPTION
private static final String
TYPE_OPTION_VALUES
private static final String
TYPE_VALUE_NOT_REQUIRE_OPERAND
Constructors Summary
Methods Summary
public booleanvalidateOptions()


        
    
    	super.validateOptions();
        final String typeOption = getOption(TYPE_OPTION);
        if (!typeOption.matches(TYPE_OPTION_VALUES))
            throw new CommandValidationException(getLocalizedString(
                                                     "InvalidTypeOption"));
        if (!typeOption.matches(TYPE_VALUE_NOT_REQUIRE_OPERAND) &&
            getOperands().size() < 1)
        {
            throw new CommandValidationException(getLocalizedString(
                                                     "OperandIsRequired",
                                                     new Object[] {typeOption}));
        }
        return true;