Package 

Class ProvisioningResponseReceiver

  • All Implemented Interfaces:
    java.lang.Runnable

    
    public class ProvisioningResponseReceiver
    extends Thread
                        

    This class handles the reception of provisioning responses from the server. It supports both TCP and UDP protocols and can operate in synchronous or asynchronous mode.

    • Method Summary

      Modifier and Type Method Description
      void run() Runs the receiver thread.If operating asynchronously, it listens for responses from the server.
      void sendProvisioningRequestion(Array<byte> data, int offset, int len) Sends a provisioning request to the server.
      void processResponse(Array<byte> data, int offset, int len) Processes the received response data.This method handles the response data based on the specified extension.Currently, it only supports the SDNS protocol extension.
      • Methods inherited from class java.lang.Thread

        activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, onSpinWait, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, start, stop, suspend, toString, yield
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ProvisioningResponseReceiver

        ProvisioningResponseReceiver(ProvisioningProvider provider, int mode, String extension, String serverIp, int serverPort, boolean isAsync)
        Constructs a new ProvisioningResponseReceiver.
        Parameters:
        provider - The provisioning provider.
        mode - The mode of operation.
        extension - The protocol extension.
        serverIp - The server IP address.
        serverPort - The server port.
        isAsync - Whether the receiver operates asynchronously.
    • Method Detail

      • run

         void run()

        Runs the receiver thread.If operating asynchronously, it listens for responses from the server.

      • sendProvisioningRequestion

         void sendProvisioningRequestion(Array<byte> data, int offset, int len)

        Sends a provisioning request to the server.

        Parameters:
        data - The request data.
        offset - The offset within the data array.
        len - The length of the data to be sent.
      • processResponse

         void processResponse(Array<byte> data, int offset, int len)

        Processes the received response data.This method handles the response data based on the specified extension.Currently, it only supports the SDNS protocol extension.

        Parameters:
        data - The received response data as a byte array.
        offset - The starting offset within the data array.
        len - The length of the data to be processed.