Interface Invocation
- All Known Implementing Classes:
InvocationImpl
public interface Invocation
Defines an invocation to a REST resource.
- Since:
- 10.0
-
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the associated action (request parameter) or null.booleanbooleanhandler()Return the function to execute the invocation.methods()Returns one or more methods supported.default Stringname()The user-friendly name of the invocationpaths()Returns one or more paths associated with the invocation.booleanVerify whether the invocation requires the cache manager to be started.Map<io.netty.handler.codec.http.HttpResponseStatus, ResponseContent>
-
Method Details
-
methods
-
action
String action()Returns the associated action (request parameter) or null. -
paths
-
name
The user-friendly name of the invocation -
handler
Function<RestRequest, CompletionStage<RestResponse>> handler()Return the function to execute the invocation. -
anonymous
boolean anonymous()- Returns:
- true whether the invocation can be done anonymously (without auth)
-
deprecated
boolean deprecated()- Returns:
- true if the invocation is deprecated
-
permission
AuthorizationPermission permission()- Returns:
- the required permission for this invocation when authorization is enabled
-
auditContext
AuditContext auditContext() -
requireCacheManagerStart
boolean requireCacheManagerStart()Verify whether the invocation requires the cache manager to be started.- Returns:
truemeans the cache manager must be running.false, otherwise.
-
resourceGroup
ResourceDescription resourceGroup()- Returns:
- The resource group which contains this invocation.
-
parameters
Collection<Parameter> parameters() -
requestBody
RequestBody requestBody() -
responses
Map<io.netty.handler.codec.http.HttpResponseStatus, ResponseContent> responses() -
operationId
String operationId()
-