uk.ac.starlink.ttools.server
Class StiltsContext

java.lang.Object
  extended by uk.ac.starlink.ttools.server.StiltsContext

public class StiltsContext
extends Object

Encapsulates servlet context aspects specific to the STILTS server mode.

Since:
20 Oct 2008
Author:
Mark Taylor

Field Summary
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 Summary
StiltsContext(javax.servlet.ServletContext context)
          Constructor.
 
Method Summary
 uk.ac.starlink.table.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TASKBASE_PARAM

public static final String TASKBASE_PARAM
Name of the Servlet initialisation parameter which defines the base URL on the server at which the TaskServlet runs. A task can be accessed at the value of this parameter with "/(taskname)" appended.

See Also:
Constant Field Values

TASKLIST_PARAM

public static String TASKLIST_PARAM
Name of the Servlet initialisation parameter which defines the tasks which this servlet will provide over HTTP. The value of this parameter is a space-separated list of the tasks to provide. If it is absent or empty, all tasks will be provided.


TABLEFACTORY_PARAM

public static String TABLEFACTORY_PARAM
Name of a Servlet initialisation parameter which can be used to customise table location. If the value is non-null it will be passed to the TableFactoryParameter.createTableFactory(java.lang.String) method to come up with a StarTableFactory which is used instead of the default one.

Constructor Detail

StiltsContext

public StiltsContext(javax.servlet.ServletContext context)
Constructor.

Parameters:
context - servlet context which provides the information for this object
Method Detail

getTableFactory

public uk.ac.starlink.table.StarTableFactory getTableFactory()
                                                      throws javax.servlet.ServletException
Acquires a StarTableFactory suitable for use from a servlet from the servlet context.

Returns:
table factory
Throws:
javax.servlet.ServletException

getTaskBase

public String getTaskBase()
Returns the server URL below which task servlets can be accessed.

Returns:
base task servlet server URL


Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.