public abstract class TopcatSender
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
TOPCAT_LOAD_MTYPE |
Constructor and Description |
---|
TopcatSender(org.astrogrid.samp.client.HubConnection connection,
java.lang.String topcatId)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Unregisters the client associated with this sender.
|
static TopcatSender |
createSender(org.astrogrid.samp.client.ClientProfile profile)
Attempts to create and return a TopcatSender for a given profile.
|
protected abstract org.astrogrid.samp.Message |
createSendMessage(java.lang.String uloc,
java.lang.String format)
Returns a Message that can be sent to TOPCAT to receive a table.
|
org.astrogrid.samp.Response |
sendTable(java.lang.String location,
java.lang.String format)
Instructs an external TOPCAT application to load a table with a given
location and table format.
|
public static final java.lang.String TOPCAT_LOAD_MTYPE
public TopcatSender(org.astrogrid.samp.client.HubConnection connection, java.lang.String topcatId)
connection
- registered connection to hubtopcatId
- client ID for currently registered TOPCAT clientpublic org.astrogrid.samp.Response sendTable(java.lang.String location, java.lang.String format) throws java.io.IOException, org.astrogrid.samp.client.SampException
location
- table URL or filenameformat
- STIL-friendly table format (null for auto)java.io.IOException
org.astrogrid.samp.client.SampException
protected abstract org.astrogrid.samp.Message createSendMessage(java.lang.String uloc, java.lang.String format) throws java.io.IOException
uloc
- location, if possible in the form of a URLformat
- STIL-friendly table format name; may be an empty string
(for auto-detection) but may not be nulljava.io.IOException
public void close()
public static TopcatSender createSender(org.astrogrid.samp.client.ClientProfile profile)
profile
- client profileCopyright ? 2003-2017 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.