org.codehaus.mojo.keytool.requests
Class AbstractKeyToolRequest

java.lang.Object
  extended by org.codehaus.mojo.keytool.requests.AbstractKeyToolRequest
All Implemented Interfaces:
KeyToolRequest
Direct Known Subclasses:
AbstractKeyToolRequestWithKeyStoreParameters, KeyToolImportKeystoreRequest, KeyToolPrintCertificateRequest, KeyToolPrintCertificateRequestRequest, KeyToolPrintCRLFileRequest

public abstract class AbstractKeyToolRequest
extends Object
implements KeyToolRequest

Specifies the commons parameters used to control a key tool invocation.

Since:
1.1
Version:
$Id: AbstractKeyToolRequest.java 15796 2012-01-29 16:07:29Z tchemit $
Author:
tchemit

Constructor Summary
AbstractKeyToolRequest()
           
 
Method Summary
 String[] getArguments()
          Gets the value of the maxMemory field.
 org.codehaus.plexus.util.cli.StreamConsumer getSystemErrorStreamConsumer()
          Gets the value of the systemErrorStreamConsumer field.
 org.codehaus.plexus.util.cli.StreamConsumer getSystemOutStreamConsumer()
          Gets the value of the systemOutStreamConsumer field.
 File getWorkingDirectory()
          Gets the value of the workingDirectory field.
 boolean isVerbose()
          Gets the value of the verbose field.
 void setArguments(String[] arguments)
          Sets the new given value to the field arguments of the request.
 void setSystemErrorStreamConsumer(org.codehaus.plexus.util.cli.StreamConsumer systemErrorStreamConsumer)
          Sets the new given value to the field systemErrorStreamConsumer of the request.
 void setSystemOutStreamConsumer(org.codehaus.plexus.util.cli.StreamConsumer systemOutStreamConsumer)
          Sets the new given value to the field systemOutStreamConsumer of the request.
 void setVerbose(boolean verbose)
          Sets the new given value to the field verbose of the request.
 void setWorkingDirectory(File workingDirectory)
          Sets the new given value to the field workingDirectory of the request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractKeyToolRequest

public AbstractKeyToolRequest()
Method Detail

isVerbose

public boolean isVerbose()
Gets the value of the verbose field.

Specified by:
isVerbose in interface KeyToolRequest
Returns:
the value of the verbose field.

getArguments

public String[] getArguments()
Gets the value of the maxMemory field.

Specified by:
getArguments in interface KeyToolRequest
Returns:
the value of the maxMemory field.

getWorkingDirectory

public File getWorkingDirectory()
Gets the value of the workingDirectory field.

Specified by:
getWorkingDirectory in interface KeyToolRequest
Returns:
the value of the workingDirectory field.

getSystemOutStreamConsumer

public org.codehaus.plexus.util.cli.StreamConsumer getSystemOutStreamConsumer()
Gets the value of the systemOutStreamConsumer field.

This option field if filled is used by the commandline tool to consume system ouput stream of the jarsigner command.

Specified by:
getSystemOutStreamConsumer in interface KeyToolRequest
Returns:
the value of the systemOutStreamConsumer field.

getSystemErrorStreamConsumer

public org.codehaus.plexus.util.cli.StreamConsumer getSystemErrorStreamConsumer()
Gets the value of the systemErrorStreamConsumer field.

This option field if filled is used by the commandline tool to consume system error stream of the jarsigner command.

Specified by:
getSystemErrorStreamConsumer in interface KeyToolRequest
Returns:
the value of the systemErrorStreamConsumer field.

setVerbose

public void setVerbose(boolean verbose)
Sets the new given value to the field verbose of the request.

Specified by:
setVerbose in interface KeyToolRequest
Parameters:
verbose - the new value of the field verbose.

setArguments

public void setArguments(String[] arguments)
Sets the new given value to the field arguments of the request.

Specified by:
setArguments in interface KeyToolRequest
Parameters:
arguments - the new value of the field arguments.

setWorkingDirectory

public void setWorkingDirectory(File workingDirectory)
Sets the new given value to the field workingDirectory of the request.

Specified by:
setWorkingDirectory in interface KeyToolRequest
Parameters:
workingDirectory - the new value of the field workingDirectory.

setSystemOutStreamConsumer

public void setSystemOutStreamConsumer(org.codehaus.plexus.util.cli.StreamConsumer systemOutStreamConsumer)
Sets the new given value to the field systemOutStreamConsumer of the request.

Specified by:
setSystemOutStreamConsumer in interface KeyToolRequest
Parameters:
systemOutStreamConsumer - the new value of the field systemOutStreamConsumer.

setSystemErrorStreamConsumer

public void setSystemErrorStreamConsumer(org.codehaus.plexus.util.cli.StreamConsumer systemErrorStreamConsumer)
Sets the new given value to the field systemErrorStreamConsumer of the request.

Specified by:
setSystemErrorStreamConsumer in interface KeyToolRequest
Parameters:
systemErrorStreamConsumer - the new value of the field systemErrorStreamConsumer.


Copyright © 2005-2012 Codehaus. All Rights Reserved.