Annotation Interface ContextInPath


@Retention(RUNTIME) @Target(PARAMETER) @Documented @InjectedParameter(HandlerImpl.class) public @interface ContextInPath
Indicates that this parameter is injected by evaluating StaplerRequest2.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.
Since:
2.1.5
See Also: