org.apache.maven.shared.jarsigner
Class AbstractJarSignerRequest

java.lang.Object
  extended by org.apache.maven.shared.jarsigner.AbstractJarSignerRequest
All Implemented Interfaces:
JarSignerRequest
Direct Known Subclasses:
JarSignerSignRequest, JarSignerVerifyRequest

public abstract class AbstractJarSignerRequest
extends Object
implements JarSignerRequest

Specifies the commons parameters used to control a jar signer invocation.

Since:
1.0
Version:
$Id: AbstractJarSignerRequest.java 1195496 2011-10-31 15:00:50Z olamy $
Author:
tchemit

Constructor Summary
AbstractJarSignerRequest()
           
 
Method Summary
 File getArchive()
          Gets the value of the archive field.
 String[] getArguments()
          Gets the value of the maxMemory field.
 String getMaxMemory()
          Gets the value of the maxMemory field.
 StreamConsumer getSystemErrorStreamConsumer()
          Gets the value of the systemErrorStreamConsumer field.
 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 setArchive(File archive)
          Sets the new given value to the field archive of the request.
 void setArguments(String[] arguments)
          Sets the new given value to the field arguments of the request.
 void setMaxMemory(String maxMemory)
          Sets the new given value to the field maxMemory of the request.
 void setSystemErrorStreamConsumer(StreamConsumer systemErrorStreamConsumer)
          Sets the new given value to the field systemErrorStreamConsumer of the request.
 void setSystemOutStreamConsumer(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

AbstractJarSignerRequest

public AbstractJarSignerRequest()
Method Detail

isVerbose

public boolean isVerbose()
Description copied from interface: JarSignerRequest
Gets the value of the verbose field.

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

getMaxMemory

public String getMaxMemory()
Description copied from interface: JarSignerRequest
Gets the value of the maxMemory field.

Specified by:
getMaxMemory in interface JarSignerRequest
Returns:
the value of the maxMemory field.

getArguments

public String[] getArguments()
Description copied from interface: JarSignerRequest
Gets the value of the maxMemory field.

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

getWorkingDirectory

public File getWorkingDirectory()
Description copied from interface: JarSignerRequest
Gets the value of the workingDirectory field.

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

getArchive

public File getArchive()
Description copied from interface: JarSignerRequest
Gets the value of the archive field.

The archive field is in fact the file on which the jarsigner request will be executed.

Specified by:
getArchive in interface JarSignerRequest
Returns:
the value of the archive field.

getSystemOutStreamConsumer

public StreamConsumer getSystemOutStreamConsumer()
Description copied from interface: JarSignerRequest
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 JarSignerRequest
Returns:
the value of the systemOutStreamConsumer field.

getSystemErrorStreamConsumer

public StreamConsumer getSystemErrorStreamConsumer()
Description copied from interface: JarSignerRequest
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 JarSignerRequest
Returns:
the value of the systemErrorStreamConsumer field.

setVerbose

public void setVerbose(boolean verbose)
Description copied from interface: JarSignerRequest
Sets the new given value to the field verbose of the request.

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

setMaxMemory

public void setMaxMemory(String maxMemory)
Description copied from interface: JarSignerRequest
Sets the new given value to the field maxMemory of the request.

Specified by:
setMaxMemory in interface JarSignerRequest
Parameters:
maxMemory - the new value of the field maxMemory.

setArguments

public void setArguments(String[] arguments)
Description copied from interface: JarSignerRequest
Sets the new given value to the field arguments of the request.

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

setWorkingDirectory

public void setWorkingDirectory(File workingDirectory)
Description copied from interface: JarSignerRequest
Sets the new given value to the field workingDirectory of the request.

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

setArchive

public void setArchive(File archive)
Description copied from interface: JarSignerRequest
Sets the new given value to the field archive of the request.

Specified by:
setArchive in interface JarSignerRequest
Parameters:
archive - the new value of the field archive.

setSystemOutStreamConsumer

public void setSystemOutStreamConsumer(StreamConsumer systemOutStreamConsumer)
Description copied from interface: JarSignerRequest
Sets the new given value to the field systemOutStreamConsumer of the request.

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

setSystemErrorStreamConsumer

public void setSystemErrorStreamConsumer(StreamConsumer systemErrorStreamConsumer)
Description copied from interface: JarSignerRequest
Sets the new given value to the field systemErrorStreamConsumer of the request.

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


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.