public abstract class AbstractToolContainer extends Object implements ToolContainer
Modifier and Type | Class and Description |
---|---|
static class |
AbstractToolContainer.GenericOutputStream |
Modifier and Type | Field and Description |
---|---|
protected ToolContext |
context |
protected PrintStream |
err |
protected PrintStream |
out |
protected ToolSpec |
toolspec |
Constructor and Description |
---|
AbstractToolContainer() |
AbstractToolContainer(ToolSpec ts) |
Modifier and Type | Method and Description |
---|---|
void |
execute(boolean exitOnFinish) |
String[] |
getArgument() |
Bus |
getBus() |
protected String |
getCatalogURL() |
CommandDocument |
getCommandDocument() |
CommandLineParser |
getCommandLineParser() |
ToolContext |
getContext() |
OutputStream |
getErrOutputStream() |
OutputStream |
getOutOutputStream() |
void |
init() |
boolean |
isQuietMode() |
boolean |
isVerboseMode() |
void |
parseCommandLine() |
void |
redirectOutput() |
void |
setArguments(String[] args) |
void |
setContext(ToolContext c) |
void |
setErrOutputStream(OutputStream errOutputStream) |
void |
setMode(String[] args) |
void |
setOutOutputStream(OutputStream outOutputStream) |
void |
tearDown() |
protected ToolSpec toolspec
protected ToolContext context
protected PrintStream out
protected PrintStream err
public AbstractToolContainer()
public AbstractToolContainer(ToolSpec ts) throws BadUsageException
BadUsageException
public void setArguments(String[] args)
setArguments
in interface ToolContainer
public void parseCommandLine() throws BadUsageException, IOException
BadUsageException
IOException
public void setMode(String[] args)
public void init() throws ToolException
ToolException
public CommandDocument getCommandDocument()
public CommandLineParser getCommandLineParser()
public void redirectOutput()
public boolean isQuietMode()
public boolean isVerboseMode()
public String[] getArgument()
public OutputStream getOutOutputStream()
public void setOutOutputStream(OutputStream outOutputStream)
setOutOutputStream
in interface ToolContainer
public OutputStream getErrOutputStream()
public void setErrOutputStream(OutputStream errOutputStream)
setErrOutputStream
in interface ToolContainer
public void setContext(ToolContext c)
setContext
in interface ToolContainer
public ToolContext getContext()
public void execute(boolean exitOnFinish) throws ToolException
execute
in interface ToolContainer
ToolException
public void tearDown()
public Bus getBus()
protected String getCatalogURL()
Apache CXF