gov.bnl.gums.command
Class AbstractCommand
java.lang.Object
gov.bnl.gums.command.AbstractCommand
- Direct Known Subclasses:
- RemoteCommand
public abstract class AbstractCommand
- extends Object
Class to provide general command line utilities such as
argument parsing and authentication
- Author:
- Gabriele Carcassi, Jay Packard
Constructor Summary |
AbstractCommand()
Creates a new AbstractWebCommand object. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
command
protected static AbstractCommand command
commandName
protected String commandName
syntax
protected String syntax
description
protected String description
failOnArguments
protected boolean failOnArguments
AbstractCommand
public AbstractCommand()
- Creates a new AbstractWebCommand object.
main
public static void main(String[] args)
buildOptions
protected abstract org.apache.commons.cli.Options buildOptions()
execute
protected abstract void execute(org.apache.commons.cli.CommandLine cmd)
throws Exception
- Throws:
Exception
execute
protected void execute(String[] args)
failForWrongParameters
protected void failForWrongParameters(String message)
getClientDN
protected String getClientDN()
getGums
protected abstract GUMSAPI getGums(String gumsUrl)
isUsingProxy
protected boolean isUsingProxy()
parse
protected org.apache.commons.cli.CommandLine parse(org.apache.commons.cli.Options options,
String[] args)
printHelp
protected void printHelp(org.apache.commons.cli.Options options)
Copyright © 2004-2009. All Rights Reserved.