All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yoctopuce.YoctoWSHandler.WSHandlerJEE Maven / Gradle / Ivy

There is a newer version: 2.0.61813
Show newest version
package com.yoctopuce.YoctoWSHandler;

import com.yoctopuce.YoctoAPI.WSHandlerInterface;
import com.yoctopuce.YoctoAPI.YAPI;
import com.yoctopuce.YoctoAPI.YAPI_Exception;
import com.yoctopuce.YoctoAPI.YHTTPHub;

import java.nio.ByteBuffer;

public class WSHandlerJEE implements WSHandlerInterface
{


    public WSHandlerJEE(WSHandlerInterface.WSHandlerResponseInterface nhandler, Object session)
    {

    }

    @Override
    public void connect(YHTTPHub hub, boolean first_notification_connection, int mstimeout, int notifAbsPos) throws YAPI_Exception
    {
        throw new YAPI_Exception(YAPI.NOT_SUPPORTED, "WSHandlerJEE is only supported in library yoctolib-jEE");
    }

    @Override
    public void close()
    {

    }

    @Override
    public boolean isOpen()
    {
        return false;
    }

    @Override
    public void sendBinary(ByteBuffer partialByte, boolean isLast) throws YAPI_Exception
    {

    }

    @Override
    public String getThreadLabel()
    {
        return "WSHandlerJEE";
    }

    @Override
    public boolean isCallback()
    {
        return false;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy