IS
- input schema classOS
- output schema classpublic abstract class RestApiHandler<IS extends Schema,OS extends Schema> extends Handler
This class is a preferred way for adding new REST endpoints.
Constructor and Description |
---|
RestApiHandler() |
Modifier and Type | Method and Description |
---|---|
abstract OS |
exec(int ignored,
IS input)
Execute the endpoint, returning the result as the output schema.
|
abstract java.lang.String |
help()
Help for this endpoint (will be used in generated bindings).
|
abstract java.lang.String |
name()
Suggested name for the endpoint in external libraries.
|
getFromDKV, getFromDKV, getHandlerMethodInputSchema, getHandlerMethodOutputSchema, handle, markdown
asBytes, clone, compute, compute1, compute2, currThrPriority, frozenType, icer, priority, read, readJSON, reloadFromBytes, write, writeJSON
__tryComplete, addToPendingCount, compareAndSetPendingCount, complete, exec, getCompleter, getPendingCount, getRawResult, onCompletion, onExceptionalCompletion, setCompleter, setPendingCount, setRawResult, tryComplete
adapt, adapt, adapt, cancel, compareAndSetForkJoinTaskTag, completeExceptionally, fork, get, get, get, getException, getForkJoinTaskTag, getPool, getQueuedTaskCount, getSurplusQueuedTaskCount, helpQuiesce, inForkJoinPool, invoke, invokeAll, invokeAll, invokeAll, isCancelled, isCompletedAbnormally, isCompletedNormally, isDone, join, peekNextLocalTask, pollNextLocalTask, pollTask, quietlyComplete, quietlyInvoke, quietlyJoin, reinitialize, setForkJoinTaskTag, tryUnfork