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 StringThe full details of the exception marshaled into the response.final StringThe exception ID of the response.final OutputStreamThe output stream buffer of the response.final intThe reply status of the response, as an int.final intThe 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.Okstatus. -
Method Summary
-
Field Details
-
exceptionId
The exception ID of the response.It's
nullwhenreplyStatusisReplyStatus.OkorReplyStatus.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
The full details of the exception marshaled into the response.The exception details. It's
nullwhenreplyStatusisReplyStatus.OkorReplyStatus.UserException. -
outputStream
The output stream buffer of the response. This output stream should not be written to after construction. -
replyStatus
public final int replyStatusThe reply status of the response, as an int. -
size
public final int sizeThe 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 intexceptionId- the type ID of the exception, when the response carries an exception other than a user exceptionexceptionDetails- the full details of the exception, when the response carries an exception other than a user exceptionoutputStream- the output stream that holds the response- See Also:
-
OutgoingResponse
Constructs an OutgoingResponse object with theReplyStatus.Okstatus.- Parameters:
outputStream- the output stream that holds the response
-