Annotation Type ContextInPath

@Retention(RUNTIME) @Target(PARAMETER) @Documented @InjectedParameter(HandlerImpl.class) public @interface ContextInPath
Indicates that this parameter is injected by evaluating StaplerRequest.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's CredentialsSelectHelper.ContextResolver FQCN and CredentialsSelectHelper.ContextResolver.getToken(ModelObject) respectively.
See Also: