java.lang.Object
com.zeroc.Ice.IncomingRequest
Represents a request received by a connection. It's the argument of
Object.dispatch(IncomingRequest)
.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal Current
Gets the current object for the request.final InputStream
Gets the incoming stream buffer of the request.final int
Gets the number of bytes in the request. -
Constructor Summary
ConstructorsConstructorDescriptionIncomingRequest
(int requestId, Connection connection, ObjectAdapter adapter, InputStream inputStream) Constructs an incoming request. -
Method Summary
-
Field Details
-
current
Gets the current object for the request. -
inputStream
Gets the incoming stream buffer of the request. -
size
public final int sizeGets 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.
-