Package com.isode.som

Class SomRequest


  • public class SomRequest
    extends java.lang.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 Summary

      Constructors 
      Constructor Description
      SomRequest​(java.lang.String requestdata)
      Create a new SomRequest object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.nio.ByteBuffer getData()
      Get the buffer containing the data
      boolean hasRemaining()
      Check whether there is more to send
      int remaining()
      Get number of bytes remaining to be sent
      void sent​(int bytessent)
      Indicate how many bytes have been sent.
      • Methods inherited from class java.lang.Object

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

      • SomRequest

        public SomRequest​(java.lang.String requestdata)
        Create a new SomRequest object.
        Parameters:
        requestdata - String forming request
    • Method Detail

      • 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 java.nio.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