@Override public String toString() { return getDescription(); }
@Override public void check() throws IOException { synchronized (monitor) { if (process != null && !process.isAlive()) { int exitStatusCode = process.exitValue(); if (exitStatusCode != 0) { throw new IOException(String.format("Command for resource %s failed with exit status code %d", toString(), exitStatusCode)); } } } } }
final CheckableResource credentialsResource = new ProcessOutputResource(credentialsProviderCommand.split("\\s+")); httpClientConfigurer.addInterceptor(new ResourceBasedAuthorizationInterceptor(credentialsResource));
final CheckableResource credentialsResource = new ProcessOutputResource(credentialsProviderCommand.split("\\s+")); httpClientConfigurer.addInterceptor(new ResourceBasedAuthorizationInterceptor(credentialsResource));
@Override public void check() throws IOException { synchronized (monitor) { if (process != null && !process.isAlive()) { int exitStatusCode = process.exitValue(); if (exitStatusCode != 0) { throw new IOException(String.format("Command for resource %s failed with exit status code %d", toString(), exitStatusCode)); } } } } }
@Override public String toString() { return getDescription(); }