public abstract class AbstractKeyToolCommandLineBuilder extends Object implements KeyToolCommandLineBuilder
KeyToolRequest.ROLE| Constructor and Description |
|---|
AbstractKeyToolCommandLineBuilder() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addArg(org.apache.maven.shared.utils.cli.Commandline cli,
File value)
Convinience method to add a file argument to the
command line. |
protected void |
addArg(org.apache.maven.shared.utils.cli.Commandline cli,
String value)
Convinience method to add an argument to the
command line. |
protected void |
addArgIfNotEmpty(org.apache.maven.shared.utils.cli.Commandline cli,
String key,
File value)
Convenience method to add an argument to the
command line if the the value is not null or empty. |
protected void |
addArgIfNotEmpty(org.apache.maven.shared.utils.cli.Commandline cli,
String key,
String value)
Convenience method to add an argument to the
command line if the the value is not null or empty. |
protected void |
addArgIfTrue(org.apache.maven.shared.utils.cli.Commandline cli,
String key,
boolean value)
Convenience method to add an argument to the
command line if the the value is true. |
protected void |
addKeytoolCommandAndDefaultoptions(org.apache.maven.shared.utils.cli.Commandline cli,
String keytoolcommand,
KeyToolRequest request)
Fill the commandline client with keytool command, optional verbose option and common options from the given
request.
|
protected void |
buildWithKeyStoreAndAliasParameters(KeyToolRequestWithKeyStoreAndAliasParameters request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request. |
protected void |
buildWithKeyStoreParameters(KeyToolRequestWithKeyStoreParameters request,
org.apache.maven.shared.utils.cli.Commandline cli)
Fill the commandline client for the given
request. |
void |
checkRequiredState()
Checks that builder is ready to produce commandline from incoming request.
|
void |
checkSupportedRequest(KeyToolRequest request)
Checks that builder can build the given type of request.
|
protected String |
getKeyToolFile()
Get the builder keytool program location.
|
protected org.codehaus.plexus.logging.Logger |
getLogger()
Get the builder logger.
|
void |
setKeyToolFile(String keyToolFile)
Sets the keytool executable location.
|
void |
setLogger(org.codehaus.plexus.logging.Logger logger)
Sets the logger used by the builder.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbuild, supportRequestTypepublic final void setLogger(org.codehaus.plexus.logging.Logger logger)
setLogger in interface KeyToolCommandLineBuilderlogger - logger to use in this builderpublic final void setKeyToolFile(String keyToolFile)
setKeyToolFile in interface KeyToolCommandLineBuilderkeyToolFile - keytool executable location to use in this builderpublic final void checkRequiredState()
checkRequiredState in interface KeyToolCommandLineBuilderpublic final void checkSupportedRequest(KeyToolRequest request) throws UnsupportedKeyToolRequestException
checkSupportedRequest in interface KeyToolCommandLineBuilderrequest - request to testUnsupportedKeyToolRequestExceptionprotected final org.codehaus.plexus.logging.Logger getLogger()
protected final String getKeyToolFile()
protected final void addKeytoolCommandAndDefaultoptions(org.apache.maven.shared.utils.cli.Commandline cli,
String keytoolcommand,
KeyToolRequest request)
cli - the commandline client to preparekeytoolcommand - keytool command option to pass to keytool programmrequest - the keytool request to consumeKeyToolRequestWithKeyStoreParameters,
KeyToolRequestWithKeyStoreAndAliasParametersprotected void buildWithKeyStoreParameters(KeyToolRequestWithKeyStoreParameters request, org.apache.maven.shared.utils.cli.Commandline cli)
request.request - the keytool import requestcli - the commandline client to prepareprotected void buildWithKeyStoreAndAliasParameters(KeyToolRequestWithKeyStoreAndAliasParameters request, org.apache.maven.shared.utils.cli.Commandline cli)
request.request - the keytool import requestcli - the commandline client to prepareprotected final void addArgIfNotEmpty(org.apache.maven.shared.utils.cli.Commandline cli,
String key,
String value)
command line if the the value is not null or empty.cli - command line to fillkey - the argument name.value - the argument value to be added.protected final void addArgIfNotEmpty(org.apache.maven.shared.utils.cli.Commandline cli,
String key,
File value)
command line if the the value is not null or empty.cli - command line to fillkey - the argument name.value - the argument value to be added.protected final void addArgIfTrue(org.apache.maven.shared.utils.cli.Commandline cli,
String key,
boolean value)
command line if the the value is true.cli - command line to fillkey - the argument name.value - the argument value to be test.protected final void addArg(org.apache.maven.shared.utils.cli.Commandline cli,
String value)
command line.cli - command line to fillvalue - the argument value to be addedprotected final void addArg(org.apache.maven.shared.utils.cli.Commandline cli,
File value)
command line.cli - command line to fillvalue - the file argument value to be addedCopyright © 2012–2015 Codehaus. All rights reserved.