public class TopcatServer extends Object
Modifier and Type | Method and Description |
---|---|
URL |
addResource(String name,
org.astrogrid.samp.httpd.ServerResource resource)
Makes a resource available for retrieving from this internal HTTP server.
|
static TopcatServer |
getInstance()
Returns the sole instance of this class.
|
org.astrogrid.samp.client.ClientProfile |
getProfile()
Returns a SAMP client profile.
|
URL |
getRelativeUrl(String subPath)
Returns the URL for a resource available at a path served
by this server.
|
URL |
getTopcatPackageUrl()
Returns the URL corresponding to the classpath for the package
uk.ac.starlink.topcat.
|
boolean |
isFound(URL url)
Indicates whether this server can serve the resource with a given URL.
|
void |
removeResource(URL url)
Removes a resource from this server.
|
public org.astrogrid.samp.client.ClientProfile getProfile()
public URL addResource(String name, org.astrogrid.samp.httpd.ServerResource resource)
name
may be supplied which will appear at the end of
the URL, but this is just for cosmetic purposes. The URL at which
the resource is available will provided as the return value.name
- filename identifying the resourceresource
- resource to make availableresource
can be foundpublic void removeResource(URL url)
url
- URL returned by a previous addResource callpublic URL getTopcatPackageUrl()
public URL getRelativeUrl(String subPath)
subPath
- path relative to this server's base URLpublic boolean isFound(URL url)
url
- URL to enquire abouturl
will complete with
non-error statuspublic static TopcatServer getInstance() throws IOException
IOException
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.