org.codehaus.mojo.keytool
Class AbstractKeyToolRequestWithKeyStoreParametersMojo<R extends KeyToolRequestWithKeyStoreParameters>

java.lang.Object
  extended by org.apache.maven.plugin.AbstractMojo
      extended by org.codehaus.mojo.keytool.AbstractKeyToolMojo
          extended by org.codehaus.mojo.keytool.AbstractKeyToolRequestMojo<R>
              extended by org.codehaus.mojo.keytool.AbstractKeyToolRequestWithKeyStoreParametersMojo<R>
Type Parameters:
R - generic type of request used by the mojo
All Implemented Interfaces:
ContextEnabled, Mojo
Direct Known Subclasses:
AbstractKeyToolRequestWithKeyStoreAndAliasParametersMojo, ChangeStorePasswordMojo

public abstract class AbstractKeyToolRequestWithKeyStoreParametersMojo<R extends KeyToolRequestWithKeyStoreParameters>
extends AbstractKeyToolRequestMojo<R>

Abstract mojo to execute a KeyToolRequestWithKeyStoreParameters request.

Since:
1.2
Author:
tchemit

Field Summary
 
Fields inherited from interface org.apache.maven.plugin.Mojo
ROLE
 
Constructor Summary
AbstractKeyToolRequestWithKeyStoreParametersMojo(Class<R> requestType)
          Constructor of abstract mojo.
 
Method Summary
protected  R createKeytoolRequest()
          To prepare the incoming request, says fill it with mojo parameters.
protected  void createParentDirIfNecessary(String file)
          Create the parent directory of the given file location.
protected  String getCommandlineInfo(org.codehaus.plexus.util.cli.Commandline commandLine)
          Gets a string representation of a Commandline.
 
Methods inherited from class org.codehaus.mojo.keytool.AbstractKeyToolRequestMojo
consumeResult, execute
 
Methods inherited from class org.codehaus.mojo.keytool.AbstractKeyToolMojo
getMessage, getMessage, getMessage, isSkip, isVerbose, setSkip, setVerbose
 
Methods inherited from class org.apache.maven.plugin.AbstractMojo
getLog, getPluginContext, setLog, setPluginContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractKeyToolRequestWithKeyStoreParametersMojo

public AbstractKeyToolRequestWithKeyStoreParametersMojo(Class<R> requestType)
Constructor of abstract mojo.

Parameters:
requestType - type of keytool request used by the mojo
Method Detail

createKeytoolRequest

protected R createKeytoolRequest()
To prepare the incoming request, says fill it with mojo parameters.

Overrides:
createKeytoolRequest in class AbstractKeyToolRequestMojo<R extends KeyToolRequestWithKeyStoreParameters>
Returns:
the created keytool request
See Also:
KeyToolRequest

getCommandlineInfo

protected String getCommandlineInfo(org.codehaus.plexus.util.cli.Commandline commandLine)
Gets a string representation of a Commandline.

This method creates the string representation by calling commandLine.toString() by default.

Overrides:
getCommandlineInfo in class AbstractKeyToolRequestMojo<R extends KeyToolRequestWithKeyStoreParameters>
Parameters:
commandLine - The Commandline to get a string representation of (can not be null).
Returns:
The string representation of commandLine.

createParentDirIfNecessary

protected final void createParentDirIfNecessary(String file)
Create the parent directory of the given file location.

Parameters:
file - file location to check


Copyright © 2005-2012 Codehaus. All Rights Reserved.