Target.EmptyTarget<T>, Target.HardCodedTarget<T>| 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. |
static <T> Target.EmptyTarget<T> |
create(Class<T> type) |
static <T> Target.EmptyTarget<T> |
create(Class<T> type,
String name) |
boolean |
equals(Object obj) |
int |
hashCode() |
String |
name() |
String |
toString() |
Class<T> |
type() |
String |
url() |
public static <T> Target.EmptyTarget<T> create(Class<T> type)
public static <T> Target.EmptyTarget<T> create(Class<T> type, String name)
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.