@Retention(value=RUNTIME) @Target(value=PARAMETER) @Documented @InjectedParameter(value=ContextInPath.HandlerImpl.class) public @interface ContextInPath
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.CredentialsDescriptor.getCheckMethod(String)Copyright © 2016–2017. All rights reserved.