public class PlotServletEnvironment extends Object implements TableEnvironment
| Constructor and Description |
|---|
PlotServletEnvironment(javax.servlet.http.HttpServletResponse response,
List<Pair<String>> nvPairs,
StarTableFactory tableFactory,
StarTableOutput tableOutput,
JDBCAuthenticator jdbcAuth,
DataStoreFactory dataStoreFactory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
acquireValue(Parameter<?> param)
Obtains a legal value for a given parameter from the environment and
sets the parameter's value accordingly.
|
void |
clearValue(Parameter<?> param)
Clears a value for a given parameter.
|
PrintStream |
getErrorStream()
Returns an output stream into which error or logging output from
a task can be written.
|
GraphicExporter |
getGraphicExporter()
Returns the graphic format identifier.
|
JDBCAuthenticator |
getJdbcAuthenticator()
Returns a JDBC authenticator suitable for use in this environment.
|
String[] |
getNames()
Returns an array of parameter names which have been specified.
|
PrintStream |
getOutputStream()
Returns an output stream into which text output from a task can
be written.
|
PlotConfiguration<?,?> |
getPlotConfiguration()
Returns the plot configuration.
|
StarTableFactory |
getTableFactory()
Returns a table factory suitable for use in this environment.
|
StarTableOutput |
getTableOutput()
Returns a table output marshaller suitable for use in this environment.
|
boolean |
isDebug()
Indicates whether we are running in debug mode.
|
boolean |
isStrictVotable()
Determines whether votables are to be parsed in strict mode.
|
void |
setDebug(boolean debug)
Sets whether we are running in debug mode.
|
void |
setStrictVotable(boolean strictVot)
Sets whether votables should be parsed in strict mode.
|
public PlotServletEnvironment(javax.servlet.http.HttpServletResponse response,
List<Pair<String>> nvPairs,
StarTableFactory tableFactory,
StarTableOutput tableOutput,
JDBCAuthenticator jdbcAuth,
DataStoreFactory dataStoreFactory)
throws IOException
response - response for servlet on behalf of which this
environment is operatingnvPairs - ordered set of name-value pairs giving
general environment parameter value settingstableFactory - table factorytableOutput - table outputterjdbcAuth - JDBC authenticationdataStoreFactory - generates DataStoresIOExceptionpublic String[] getNames()
EnvironmentgetNames in interface Environmentpublic void acquireValue(Parameter<?> param) throws TaskException
Environment
This environment should obtain a value for the parameter par
in whatever way it sees fit, and must then call par's
Parameter.setValueFromString(uk.ac.starlink.task.Environment, java.lang.String) method so that the parameter
knows what its new value is. If the setValueFromString call
throws a ParameterValueException the environment may
try to get another value (for instance by re-prompting the user)
or may give up and re-throw the exception.
acquireValue in interface Environmentparam - the Parameter whose value is to be obtained and setTaskExceptionpublic PlotConfiguration<?,?> getPlotConfiguration()
public GraphicExporter getGraphicExporter()
public void clearValue(Parameter<?> param)
EnvironmentclearValue in interface Environmentparam - the Parameter whose value is to be clearedpublic PrintStream getOutputStream()
EnvironmentgetOutputStream in interface Environmentpublic PrintStream getErrorStream()
EnvironmentgetErrorStream in interface Environmentpublic StarTableFactory getTableFactory()
TableEnvironmentgetTableFactory in interface TableEnvironmentpublic StarTableOutput getTableOutput()
TableEnvironmentgetTableOutput in interface TableEnvironmentpublic JDBCAuthenticator getJdbcAuthenticator()
TableEnvironmentgetJdbcAuthenticator in interface TableEnvironmentpublic boolean isDebug()
TableEnvironmentisDebug in interface TableEnvironmentpublic void setDebug(boolean debug)
TableEnvironmentsetDebug in interface TableEnvironmentdebug - set true if you want debugging messagespublic boolean isStrictVotable()
TableEnvironmentisStrictVotable in interface TableEnvironmentpublic void setStrictVotable(boolean strictVot)
TableEnvironmentsetStrictVotable in interface TableEnvironmentstrictVot - true if VOTables should be interpreted
strictly in accordance with the standardCopyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.