- All Superinterfaces:
Object
Base class for dynamic dispatch servants. A server application derives a concrete servant class
from
Blobject
that implements the ice_invoke(byte[], com.zeroc.Ice.Current)
method.-
Nested Class Summary
Nested classes/interfaces inherited from interface com.zeroc.Ice.Object
Object.Ice_invokeResult
-
Method Summary
Modifier and TypeMethodDescriptiondefault CompletionStage<OutgoingResponse>
dispatch
(IncomingRequest request) Dispatches an incoming request and returns the corresponding outgoing response.ice_invoke
(byte[] inEncaps, Current current) Dispatch an incoming request.
-
Method Details
-
ice_invoke
Dispatch an incoming request.- Parameters:
inEncaps
- The encoded in-parameters for the operation.current
- The Current object to pass to the operation.- Returns:
- The method returns an instance of
Ice_invokeResult
. If the operation completed successfully, set thereturnValue
member totrue
and theoutParams
member to the encoded results. If the operation raises a user exception, you can either throw it directly or set thereturnValue
member tofalse
and theoutParams
member to the encoded user exception. If the operation raises an Ice run-time exception, it must throw it directly. - Throws:
UserException
- A user exception can be raised directly and the run time will marshal it.
-
dispatch
Description copied from interface:Object
Dispatches an incoming request and returns the corresponding outgoing response.- Specified by:
dispatch
in interfaceObject
- Parameters:
request
- The incoming request.- Returns:
- The outgoing response.
- Throws:
UserException
- If aUserException
is thrown, Ice will marshal it as the response payload.
-