Annotation Type ContextInPath
-
@Retention(RUNTIME) @Target(PARAMETER) @Documented @InjectedParameter(HandlerImpl.class) public @interface ContextInPath
Indicates that this parameter is injected by evaluatingStaplerRequest.getAncestors()
and searching for a credentials context with the parameter type. You can enhance the lookup by ensuring that there are query parameters of$provider
and$token
that correspond to the context'sCredentialsSelectHelper.ContextResolver
FQCN andCredentialsSelectHelper.ContextResolver.getToken(ModelObject)
respectively.- Since:
- 2.1.5
- See Also:
CredentialsDescriptor.getCheckMethod(String)