public class ImpersonatorInterceptor extends Object implements Interceptor
| Constructor and Description |
|---|
ImpersonatorInterceptor(Config config) |
| Modifier and Type | Method and Description |
|---|---|
void |
before(BasicBuilder builder,
HttpHeaders headers)
Called before a request to allow for the manipulation of the request
|
Interceptor |
withConfig(Config config)
Interceptors that rely upon the Config, in particular the RequestConfig, must implement
this method to receive the modified configuration |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitafterFailure, afterFailure, useConfigpublic static final String NAME
public ImpersonatorInterceptor(Config config)
public Interceptor withConfig(Config config)
InterceptorInterceptors that rely upon the Config, in particular the RequestConfig, must implement
this method to receive the modified configurationwithConfig in interface Interceptorpublic void before(BasicBuilder builder, HttpHeaders headers)
Interceptorbefore in interface Interceptorbuilder - used to modify the requestheaders - the current headersCopyright © 2015–2023 Red Hat. All rights reserved.