Class InvocationImpl
- java.lang.Object
-
- org.infinispan.rest.framework.impl.InvocationImpl
-
- All Implemented Interfaces:
Invocation
public class InvocationImpl extends Object implements Invocation
- Since:
- 10.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classInvocationImpl.Builder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleananonymous()org.infinispan.security.AuditContextauditContext()booleandeprecated()StringgetAction()Returns the associated action (request parameter) or null.StringgetName()The user friendly name of the invocationFunction<RestRequest,CompletionStage<RestResponse>>handler()Return the function to execute the invocation.Set<Method>methods()Returns one or more methods supported.Set<String>paths()Returns one or more paths associated with the invocation.org.infinispan.security.AuthorizationPermissionpermission()StringtoString()
-
-
-
Method Detail
-
getAction
public String getAction()
Description copied from interface:InvocationReturns the associated action (request parameter) or null.- Specified by:
getActionin interfaceInvocation
-
methods
public Set<Method> methods()
Description copied from interface:InvocationReturns one or more methods supported.- Specified by:
methodsin interfaceInvocation
-
paths
public Set<String> paths()
Description copied from interface:InvocationReturns one or more paths associated with the invocation. Paths can be constant, e.g. /a/b/c or use variables such as /a/{var1}/{var2}.- Specified by:
pathsin interfaceInvocation
-
getName
public String getName()
Description copied from interface:InvocationThe user friendly name of the invocation- Specified by:
getNamein interfaceInvocation
-
handler
public Function<RestRequest,CompletionStage<RestResponse>> handler()
Description copied from interface:InvocationReturn the function to execute the invocation.- Specified by:
handlerin interfaceInvocation
-
anonymous
public boolean anonymous()
- Specified by:
anonymousin interfaceInvocation- Returns:
- true whether the invocation can be done anonymously (without auth)
-
permission
public org.infinispan.security.AuthorizationPermission permission()
- Specified by:
permissionin interfaceInvocation- Returns:
- the required permission for this invocation when authorization is enabled
-
auditContext
public org.infinispan.security.AuditContext auditContext()
- Specified by:
auditContextin interfaceInvocation
-
deprecated
public boolean deprecated()
- Specified by:
deprecatedin interfaceInvocation- Returns:
- true if the invocation is deprecated
-
-