org.astrogrid.samp.client.MessageHandlerpublic abstract class TablePullHandler
extends org.astrogrid.samp.client.AbstractMessageHandler
| Modifier | Constructor | Description |
|---|---|---|
protected |
TablePullHandler(java.lang.String mtype) |
Constructor.
|
| Modifier and Type | Method | Description |
|---|---|---|
static TablePullHandler |
createFormatTablePullHandler(java.lang.String mtype,
uk.ac.starlink.table.StarTableWriter twriter) |
Returns a message handler for a given fixed table format.
|
static TablePullHandler |
createGenericTablePullHandler(java.lang.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(java.util.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.
|
java.util.Map |
processCall(org.astrogrid.samp.client.HubConnection conn,
java.lang.String senderId,
org.astrogrid.samp.Message msg) |
protected TablePullHandler(java.lang.String mtype)
mtype - SAMP Mtypeprotected org.astrogrid.samp.Response createResponse(java.util.Map processOutput)
createResponse in class org.astrogrid.samp.client.AbstractMessageHandlerpublic java.util.Map processCall(org.astrogrid.samp.client.HubConnection conn,
java.lang.String senderId,
org.astrogrid.samp.Message msg)
throws java.io.IOException
processCall in class org.astrogrid.samp.client.AbstractMessageHandlerjava.io.IOExceptionprotected abstract uk.ac.starlink.table.StarTableWriter getTableWriter(org.astrogrid.samp.Message msg)
throws java.io.IOException
msg - messagejava.io.IOExceptionpublic static TablePullHandler createFormatTablePullHandler(java.lang.String mtype, uk.ac.starlink.table.StarTableWriter twriter)
mtype - SAMP Mtypetwriter - serializer defining table formatpublic static TablePullHandler createGenericTablePullHandler(java.lang.String mtype)
mtype - SAMP MtypeCopyright © 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.