public class Stilts extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
VERSION_RESOURCE |
| Constructor and Description |
|---|
Stilts() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addStandardSchemes(StarTableFactory tfact)
Adds the table schemes specific to STILTS to the given table factory.
|
static void |
configureUserAgent(Task task)
Prepares the java HTTP client for making HTTP requests,
by configuring the User-Agent header appropriately for
a given STILTS task.
|
static ObjectFactory<ProcessingMode> |
getModeFactory()
Returns the factory which can create any of the known output modes.
|
static ObjectFactory<TypedPlot2Task<?,?>> |
getPlot2TaskFactory()
Returns the factory which can create plot2 tasks.
|
static TableScheme[] |
getStandardSchemes()
Returns a list of the TableSchemes which are supposed to be
available within the Stilts application,
but are not in a default StarTableFactory.
|
static String |
getStarjavaRevision()
Returns the revision string for the starjava repository, if available.
|
static ObjectFactory<Task> |
getTaskFactory()
Returns the factory which can create any of the known tasks.
|
static String |
getVersion()
Returns the version number for the STILTS package.
|
static void |
main(String[] args)
Main method.
|
public static final String VERSION_RESOURCE
public static void main(String[] args)
args - argument vectorpublic static ObjectFactory<ProcessingMode> getModeFactory()
public static ObjectFactory<Task> getTaskFactory()
public static ObjectFactory<TypedPlot2Task<?,?>> getPlot2TaskFactory()
public static TableScheme[] getStandardSchemes()
public static void addStandardSchemes(StarTableFactory tfact)
getStandardSchemes().tfact - table factorypublic static String getVersion()
public static void configureUserAgent(Task task)
Note this only has any effect if done early enough (before any HTTP connections have been established?). Later invocations will have no effect on the value of the User-Agent header presented during HTTP requests. It is also only effective the first time it is called.
task - stilts task, may be nullpublic static String getStarjavaRevision()
Copyright © 2026 Central Laboratory of the Research Councils. All Rights Reserved.