public class StiltsContext extends Object
Modifier and Type | Field and Description |
---|---|
static String |
ALLOWORIGINS_PARAM
Name of a servlet initialisation parameter giving allowed origins
for permissible Cross-Origin requests.
|
static String |
CACHEDIR_PARAM
Name of a Servlet initialisation parameter giving the directory
to use for persistent data cache files used during plotting.
|
static String |
CACHELIMIT_PARAM
Name of a Servlet initialisation parameter indicating the maximum
size for the persistent data cache used during plotting.
|
static String |
PLOTPARALLELISM_PARAM
Name of a servlet initalisation parameter giving the maximum
number of cores to use in the ForkJoinPool used during parallel
plotting.
|
static String |
TABLEFACTORY_PARAM
Name of a Servlet initialisation parameter which can be used to
customise table location.
|
static String |
TASKBASE_PARAM
Name of the Servlet initialisation parameter which defines the
base URL on the server at which the TaskServlet runs.
|
static String |
TASKLIST_PARAM
Name of the Servlet initialisation parameter which defines the
tasks which this servlet will provide over HTTP.
|
Constructor and Description |
---|
StiltsContext(javax.servlet.ServletContext context)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getAllowOrigins()
Returns the intended content of the CORS Access-Control-Allow-Origin
header.
|
DataStoreFactory |
getDataStoreFactory()
Returns the DataStoreFactory to be used for plots.
|
DiskCache |
getImageCache()
Returns a cache that can be used for caching plotted image files.
|
StarTableFactory |
getTableFactory()
Acquires a StarTableFactory suitable for use from a servlet
from the servlet context.
|
String |
getTaskBase()
Returns the server URL below which task servlets can be accessed.
|
public static final String TASKBASE_PARAM
public static final String TASKLIST_PARAM
public static final String TABLEFACTORY_PARAM
TableFactoryParameter.createTableFactory(java.lang.String)
method to come up with a StarTableFactory which is used instead of the
default one.public static final String CACHEDIR_PARAM
java.io.tmpdir
system property is used.public static final String CACHELIMIT_PARAM
public static final String PLOTPARALLELISM_PARAM
public static final String ALLOWORIGINS_PARAM
Access-Control-Allow-Origin
header
where that is issued. If this parameter is not set some default
behaviour will be used; that may be allowing all cross-origin
requests, depending on the perceived security implications.
To deny all requests, set it to the empty string.public StiltsContext(javax.servlet.ServletContext context)
context
- servlet context which provides the information for
this objectpublic StarTableFactory getTableFactory() throws javax.servlet.ServletException
javax.servlet.ServletException
public String getTaskBase()
public DataStoreFactory getDataStoreFactory() throws javax.servlet.ServletException
javax.servlet.ServletException
public DiskCache getImageCache() throws javax.servlet.ServletException
javax.servlet.ServletException
public String getAllowOrigins() throws javax.servlet.ServletException
javax.servlet.ServletException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.