Package com.zeroc.Ice

Class IncomingRequest

java.lang.Object
com.zeroc.Ice.IncomingRequest

public final class IncomingRequest extends Object
Represents a request received by a connection. It's the argument of Object.dispatch(IncomingRequest).
  • Field Details

    • current

      public final Current current
      Gets the current object for the request.
    • inputStream

      public final InputStream inputStream
      Gets the incoming stream buffer of the request.
    • size

      public final int size
      Gets the number of bytes in the request. These are all the bytes starting with the identity of the target.
  • Constructor Details

    • IncomingRequest

      public IncomingRequest(int requestId, Connection connection, ObjectAdapter adapter, InputStream inputStream)
      Constructs an incoming request.
      Parameters:
      requestId - The request ID. It's 0 for oneway requests.
      connection - The connection that received the request. It's null for collocated invocations.
      adapter - The object adapter to set in current.
      inputStream - The input stream buffer over the incoming Ice protocol request message. The stream is positioned at the beginning of the request header - the next data to read is the identity of the target.