Target.EmptyTarget<T>, Target.HardCodedTarget<T>| Constructor and Description |
|---|
HardCodedTarget(Class<T> type,
String url) |
HardCodedTarget(Class<T> type,
String name,
String url) |
| Modifier and Type | Method and Description |
|---|---|
Request |
apply(RequestTemplate input)
Targets a template to this target, adding the
base url and any target-specific
headers or query parameters. |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
name() |
String |
toString() |
Class<T> |
type() |
String |
url() |
public Request apply(RequestTemplate input)
Targetbase url and any target-specific
headers or query parameters.
public Request apply(RequestTemplate input) {
input.insert(0, url());
input.replaceHeader("X-Auth", currentToken);
return input.asRequest();
}
javax.ws.rs.client.WebTarget.request(), except that we expect transient, but necessary
decoration to be applied on invocation.Copyright © 2012–2020 OpenFeign. All rights reserved.