public abstract class BivesResponse extends Object implements Serializable, BivesCommands
Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
bivesResults |
protected List<String> |
error
The errors.
|
COMMAND_FORCE_CELLML, COMMAND_FORCE_REGULAR, COMMAND_FORCE_SBML, COMMAND_SET_LOG_STACKTRACE, COMMAND_SET_VERBOSE
Constructor and Description |
---|
BivesResponse()
The Constructor to create an BiVeS web service response.
|
Modifier and Type | Method and Description |
---|---|
void |
addError(String error)
Adds an error.
|
List<String> |
getErrors()
Gets the errors.
|
String |
getResult(String key)
Gets a result.
|
boolean |
hasError()
Checks for errors.
|
abstract void |
postProcess()
Post process a response.
|
void |
setResult(String key,
String value)
Sets a result.
|
public BivesResponse()
public abstract void postProcess()
public String getResult(String key)
key
- the commandBivesCommands
,
BivesComparisonCommands
,
BivesSingleFileCommands
public void setResult(String key, String value)
key
- the commandvalue
- the resultpublic boolean hasError()
public void addError(String error)
error
- the errorCopyright © 2014 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.