public class TopcatServer
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.net.URL |
addResource(java.lang.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.
|
java.net.URL |
getTopcatPackageUrl()
Returns the URL corresponding to the classpath for the package
uk.ac.starlink.topcat.
|
boolean |
isFound(java.net.URL url)
Indicates whether this server can serve the resource with a given URL.
|
void |
removeResource(java.net.URL url)
Removes a resource from this server.
|
public org.astrogrid.samp.client.ClientProfile getProfile()
public java.net.URL addResource(java.lang.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(java.net.URL url)
url
- URL returned by a previous addResource callpublic java.net.URL getTopcatPackageUrl()
public boolean isFound(java.net.URL url)
url
- URL to enquire abouturl
will complete with
non-error statuspublic static TopcatServer getInstance() throws java.io.IOException
java.io.IOException
Copyright © 2003-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.