Package com.isode.som
Class SomRequest
- java.lang.Object
-
- com.isode.som.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 databoolean
hasRemaining()
Check whether there is more to sendint
remaining()
Get number of bytes remaining to be sentvoid
sent(int bytessent)
Indicate how many bytes have been sent.
-
-
-
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
-
-