Package com.isode.som

Class SomRequest

java.lang.Object
com.isode.som.SomRequest

public class SomRequest extends Object
Class which models the actual octets of a SOM command as it is being sent (perhaps in chunks) over the wire/
Author:
tc
  • Constructor Details

    • SomRequest

      public SomRequest(String requestdata)
      Create a new SomRequest object.
      Parameters:
      requestdata - String forming request
  • Method Details

    • remaining

      public int remaining()
      Get number of bytes remaining to be sent
      Returns:
      number of bytes remaining
    • hasRemaining

      public boolean hasRemaining()
      Check whether there is more to send
      Returns:
      true if bytes remaining
    • getData

      public ByteBuffer getData()
      Get the buffer containing the data
      Returns:
      the data
    • sent

      public void sent(int bytessent)
      Indicate how many bytes have been sent.
      Parameters:
      bytessent - number of bytes sent