java.lang.Object
com.zeroc.Ice.OutgoingResponse
Represents the response to an incoming request. It's returned by
Object.dispatch(IncomingRequest)
.-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
Gets the full details of the exception marshaled into the response.final String
Gets the exception ID of the response.final OutputStream
Gets the output stream buffer of the response.final int
Gets the reply status of the response, as an int.final int
Gets the number of bytes in the response's payload. -
Constructor Summary
ConstructorsConstructorDescriptionOutgoingResponse
(int replyStatus, String exceptionId, String exceptionDetails, OutputStream outputStream) Constructs an OutgoingResponse object.OutgoingResponse
(OutputStream outputStream) Constructs an OutgoingResponse object with theReplyStatus.Ok
status. -
Method Summary
-
Field Details
-
exceptionId
Gets the exception ID of the response.It's null when replyStatus is
ReplyStatus.Ok
orReplyStatus.UserException
. Otherwise, this ID is the value returned byLocalException.ice_id()
. For other exceptions, this ID is the full name of the exception's type. -
exceptionDetails
Gets the full details of the exception marshaled into the response.The exception details. It's null when replyStatus is
ReplyStatus.Ok
orReplyStatus.UserException
. -
outputStream
Gets the output stream buffer of the response. This output stream should not be written to after construction. -
replyStatus
public final int replyStatusGets the reply status of the response, as an int. -
size
public final int sizeGets the number of bytes in the response's payload.
-
-
Constructor Details
-
OutgoingResponse
public OutgoingResponse(int replyStatus, String exceptionId, String exceptionDetails, OutputStream outputStream) Constructs an OutgoingResponse object.- Parameters:
replyStatus
- The reply status, as an int.exceptionId
- The ID of the exception, when the response carries an exception other than a user exception.exceptionDetails
- The full details of the exception, when the response carries an exception other than a user exception.outputStream
- The output stream that holds the response.
-
OutgoingResponse
Constructs an OutgoingResponse object with theReplyStatus.Ok
status.- Parameters:
outputStream
- The output stream that holds the response.
-