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 boundaries 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 step(int)
method will be called.
The Helper
instance passed in contains those resources needed by
IRequests to interact with data and should be stored for later use.helper
- the helper for this requestHandleI.Cancel
- if this request is cancelledObject step(int step) throws HandleI.Cancel
buildResponse(int, Object)
for conversion and storage.step
- the step numberHandleI.Cancel
- if this request is cancelledvoid finish() throws HandleI.Cancel
HandleI.Cancel
will still rollback the current
transaction.HandleI.Cancel
- if this request is cancelledvoid buildResponse(int step, Object object)
step(int)
to a Response
object.step
- the step numberobject
- an object to be used in building the responseomero.cmd.Response getResponse()
Version: 5.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.