Package org.astrogrid.samp

Examples of org.astrogrid.samp.Subscriptions


     * @param client target client
     * @param format a format string, such as spectrum/fits or spectrum/votable
     * @return sender
     */
    private Sender getSender(Client client, String format) {
        Subscriptions subs = client.getSubscriptions();
        for (Sender sender : SENDERS) {
            if (subs.isSubscribed(sender.getMtype())
                    && (format == null || format.equals(sender.getFormat()))) {
                return sender;
            }
        }
        return null;
View Full Code Here


     *
     * @param client target client
     * @return sender
     */
    private static Sender getSender(Client client) {
        Subscriptions subs = client.getSubscriptions();
        for (Sender sender : SENDERS) {
            if (subs.isSubscribed(sender.getMtype())) {
                return sender;
            }
        }
        return null;
    }
View Full Code Here

TOP

Related Classes of org.astrogrid.samp.Subscriptions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.