public abstract class TablePullHandler
extends org.astrogrid.samp.client.AbstractMessageHandler
| Modifier | Constructor and Description |
|---|---|
protected |
TablePullHandler(String mtype)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static TablePullHandler |
createFormatTablePullHandler(String mtype,
uk.ac.starlink.table.StarTableWriter twriter)
Returns a message handler for a given fixed table format.
|
static TablePullHandler |
createGenericTablePullHandler(String mtype)
Returns a message handler where the table format is determined by
a "format" parameter in the incoming message.
|
protected org.astrogrid.samp.Response |
createResponse(Map processOutput)
If it's a Response, use it as is, if not wrap it up as a success.
|
protected abstract uk.ac.starlink.table.StarTableWriter |
getTableWriter(org.astrogrid.samp.Message msg)
Returns a table writer to use for the given message.
|
org.astrogrid.samp.Response |
processCall(org.astrogrid.samp.client.HubConnection conn,
String senderId,
org.astrogrid.samp.Message msg) |
protected TablePullHandler(String mtype)
mtype - SAMP Mtypeprotected org.astrogrid.samp.Response createResponse(Map processOutput)
createResponse in class org.astrogrid.samp.client.AbstractMessageHandlerpublic org.astrogrid.samp.Response processCall(org.astrogrid.samp.client.HubConnection conn,
String senderId,
org.astrogrid.samp.Message msg)
throws IOException
processCall in class org.astrogrid.samp.client.AbstractMessageHandlerIOExceptionprotected abstract uk.ac.starlink.table.StarTableWriter getTableWriter(org.astrogrid.samp.Message msg)
throws IOException
msg - messageIOExceptionpublic static TablePullHandler createFormatTablePullHandler(String mtype, uk.ac.starlink.table.StarTableWriter twriter)
mtype - SAMP Mtypetwriter - serializer defining table formatpublic static TablePullHandler createGenericTablePullHandler(String mtype)
mtype - SAMP MtypeCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.