SquirrelJME/SquirrelJME

View on GitHub
modules/wireless-messaging/src/main/java/cc/squirreljme/runtime/messaging/MessageConnectionFactory.java

Summary

Maintainability
A
0 mins
Test Coverage
// -*- Mode: Java; indent-tabs-mode: t; tab-width: 4 -*-
// ---------------------------------------------------------------------------
// SquirrelJME
//     Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
// ---------------------------------------------------------------------------
// SquirrelJME is under the Mozilla Public License Version 2.0.
// See license.mkd for licensing and copyright information.
// ---------------------------------------------------------------------------

package cc.squirreljme.runtime.messaging;

import cc.squirreljme.runtime.cldc.annotation.Api;
import cc.squirreljme.runtime.cldc.annotation.SquirrelJMEVendorApi;
import cc.squirreljme.runtime.cldc.debug.Debugging;
import cc.squirreljme.runtime.gcf.CustomConnectionFactory;
import java.io.IOException;
import javax.microedition.io.Connection;
import javax.microedition.io.ConnectionOption;

/**
 * This is the factory which handles the {@code sms} protocol.
 *
 * @since 2022/02/27
 */
@SquirrelJMEVendorApi
public class MessageConnectionFactory
    implements CustomConnectionFactory
{
    /**
     * {@inheritDoc}
     * @since 2022/02/27
     */
    @Override
    @SquirrelJMEVendorApi
    public Connection connect(String __part, int __mode, boolean __timeouts,
        ConnectionOption<?>[] __opts)
        throws IOException, NullPointerException
    {
        throw Debugging.todo();
    }
    
    /**
     * {@inheritDoc}
     * @since 2022/02/27
     */
    @Override
    @SquirrelJMEVendorApi
    public String scheme()
    {
        return "sms";
    }
}