@zeroc/ice
    Preparing search index...

    Class Current

    Provides information about an incoming request being dispatched.

    Index

    Constructors

    • Construct a new Current object.

      Parameters

      • adapter: ObjectAdapter

        The object adapter that received the request.

      • con: Connection

        The connection that received the request.

      • id: Identity

        The identity of the target Ice object.

      • facet: string

        The facet of the target Ice object.

      • operation: string

        The name of the operation being invoked.

      • mode: OperationMode

        The operation mode (idempotent or not).

      • ctx: Context

        The request context.

      • requestId: number

        The request ID. A value of 0 indicates a one-way request.

      • encoding: EncodingVersion

        The encoding of the request payload.

      Returns Current

    Properties

    adapter: ObjectAdapter

    The object adapter that received the request.

    The connection that received the request.

    ctx: Context

    The request context.

    encoding: EncodingVersion

    The encoding of the request payload.

    facet: string

    The facet of the target Ice object.

    The identity of the target Ice object.

    The operation mode (idempotent or not).

    operation: string

    The name of the operation.

    requestId: number

    The request ID. 0 means the request is a one-way request.

    Methods

    • Creates an empty outgoing response with reply status ReplyStatus.Ok for the request being dispatched corresponding to this current object.

      Returns OutgoingResponse

      An outgoing response with an empty payload.

    • Creates an outgoing response that marshals an exception or the request being dispatched corresponding to this current object.

      Parameters

      • exception: Exception

        The exception to marshal into the response payload.

      Returns OutgoingResponse

      A new outgoing response.

    • Creates an outgoing response with reply status ReplyStatus.Ok for the request being dispatched corresponding to this current object.

      Parameters

      • marshal: (ostr: OutputStream) => void

        The action that marshals result into an output stream.

      • OptionalformatType: FormatType

        The class format.

      Returns OutgoingResponse

      A new outgoing response.