FileDocCategorySizeDatePackage
ArgumentHandler.javaAPI DocGlassfish v2 API5142Tue Jul 24 15:23:08 BST 2007com.sun.enterprise.tools.upgrade.common.arguments

ArgumentHandler

public abstract class ArgumentHandler extends Object
author
Hans Hrasna

Fields Summary
protected Logger
_logger
protected com.sun.enterprise.tools.upgrade.common.CommonInfoModel
commonInfo
protected Vector
parameters
protected com.sun.enterprise.util.i18n.StringManager
sm
protected com.sun.enterprise.tools.upgrade.common.UpgradeUtils
utils
protected Map
interactiveMap
Constructors Summary
public ArgumentHandler(ParsedArgument pa)
Creates a new instance of ArgumentHandler

    
           
       
        commonInfo = pa.getCommonInfo();
        parameters = pa.getParameters();
        sm = StringManager.getManager(LogService.UPGRADE_CLI_LOGGER);
        utils = UpgradeUtils.getUpgradeUtils(commonInfo);
        interactiveMap = pa.getInteractiveMap();
    
Methods Summary
protected voidhelpUsage()

        
        System.out.println(sm.getString("enterprise.tools.upgrade.cli.usage"));
        /**
         * CR 6568833 : For 9.1, the options used to pass passwords for certififcate
         * transfer have been removed since they are no longer required. So
         * use a single usage command common to all upgrade paths.
         */
        System.out.println(sm.getString("enterprise.tools.upgrade.cli.command_string"));
        System.out.println(sm.getString("enterprise.tools.upgrade.cli.usage_options_summary"));
        System.out.println();

        /* Comment out code since separate code usage command lines not needed for 9.1 
        if(commonInfo.isUpgradeJKStoNSS() || commonInfo.isUpgradeNSStoJKS()) {
            System.out.println(".... Upgrading JKS -> NSS or NSS -> JKS ");
            System.out.println(sm.getString("enterprise.tools.upgrade.cli.convert_certs"));
            System.out.println(sm.getString("enterprise.tools.upgrade.cli.usage_options_summary"));
            System.out.println();
            return;
        }
        
        if(commonInfo.isUpgradeNSStoNSS()) {
            System.out.println(".... Upgrading NSS -> NSS ");
            System.out.println(sm.getString("enterprise.tools.upgrade.cli.NSS_certs"));
            System.out.println(sm.getString("enterprise.tools.upgrade.cli.usage_options_summary"));
            System.out.println();
            return;
        }
        
        if(commonInfo.isUpgradeJKStoJKS()) {
            System.out.println(".... Upgrading JKS -> JKS ");
            System.out.println(sm.getString("enterprise.tools.upgrade.cli.JKS_certs"));
            System.out.println(sm.getString("enterprise.tools.upgrade.cli.usage_options_summary"));
            System.out.println();
            return;
        }

        System.out.println(".... Upgrading Convertng certs");
        System.out.println(sm.getString("enterprise.tools.upgrade.cli.convert_certs"));
        */
    
protected voidhelpUsage(java.lang.String msg)

        System.out.println(msg);
        System.out.println();
        helpUsage();