public interface IRequest
Request
hierarchy. All request implementations
handled by the server must also be instances of IRequest
,
which defines the lifecycle methods needed for processing.Modifier and Type | Method and Description |
---|---|
void |
buildResponse(int step,
Object object)
Post-transaction chance to map from the return value of
step(int) to a Response object. |
void |
finish()
Method within the transaction boudnaries after all processing has
occurred.
|
Map<String,String> |
getCallContext()
Returns the desired call context for this request.
|
omero.cmd.Response |
getResponse()
Returns the current response value.
|
void |
init(Helper helper)
Method called within the transaction boundaries before any processing occurs.
|
Object |
step(int step)
Single uncancellable action which will be performed by this IRequest.
|
Map<String,String> getCallContext()
Map
as desired.void init(Helper helper) throws HandleI.Cancel
Status
object by calling Helper#setSteps(int). This count
will define how many times the {@link #step(int)} method will be called.
The {@link Helper} instance passed in contains those resources needed by
IRequests to interact with data and should be stored for later use.HandleI.Cancel
Object step(int step) throws HandleI.Cancel
buildResponse(int, Object)
for conversion and storage.i
- HandleI.Cancel
void finish() throws HandleI.Cancel
HandleI.Cancel
will still rollback the current
transaction.HandleI.Cancel
void buildResponse(int step, Object object)
step(int)
to a Response
object.i
- object
- omero.cmd.Response getResponse()
Version: 5.1.1-ice35-b43
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.