Ice 3.8
C++ API Reference
Loading...
Searching...
No Matches
Ice::OutgoingResponse Class Referencefinal

Represents the response to an incoming request. More...

#include <Ice/Ice.h>

Public Member Functions

 OutgoingResponse (const OutgoingResponse &)=delete
 OutgoingResponse (OutgoingResponse &&other) noexcept=default
 Move constructor.
 OutgoingResponse (OutputStream outputStream, const Current &current) noexcept
 Constructs an OutgoingResponse object with ReplyStatus::Ok.
 OutgoingResponse (ReplyStatus replyStatus, std::string exceptionId, std::string exceptionDetails, OutputStream outputStream, const Current &current) noexcept
 Constructs an OutgoingResponse object.
const Currentcurrent () const noexcept
 Gets the Current object of this response.
const std::string & exceptionDetails () const noexcept
 Gets the full details of the exception marshaled into the response.
const std::string & exceptionId () const noexcept
 Gets the exception ID of the response.
OutgoingResponseoperator= (const OutgoingResponse &)=delete
OutgoingResponseoperator= (OutgoingResponse &&other) noexcept=default
 Move assignment operator.
OutputStreamoutputStream () noexcept
 Gets the output stream buffer of the response.
ReplyStatus replyStatus () const noexcept
 Gets the reply status of the response.
std::int32_t size () const noexcept
 Gets the number of bytes in the response.

Detailed Description

Represents the response to an incoming request.

It's the argument to the sendResponse callback accepted by Object::dispatch.

Remarks
OutgoingResponse is movable but not copyable. sendResponse wrappers must move the response to the next callback.
See also
Object::dispatch

Definition at line 21 of file OutgoingResponse.h.


The documentation for this class was generated from the following file: