removed client field from client config
parent
9650fd24ea
commit
47e82eddee
|
@ -27,10 +27,6 @@ public class {{configName}} implements ClientRequestFilter {
|
|||
|
||||
@NonNull
|
||||
private final String baseUrl;
|
||||
@Builder.Default
|
||||
private final Client client = ClientBuilder.newClient()
|
||||
.register(this)
|
||||
.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);
|
||||
|
||||
{{#headers}}/** {{#description}}{{.}}
|
||||
{{/description}} **/{{#required}}
|
||||
|
@ -38,6 +34,12 @@ public class {{configName}} implements ClientRequestFilter {
|
|||
private {{{type.name}}} {{label}};
|
||||
{{/headers}}
|
||||
|
||||
public Client getClient() {
|
||||
return ClientBuilder.newClient()
|
||||
.register(this)
|
||||
.property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void filter(ClientRequestContext requestContext) throws IOException {
|
||||
{{#headers}}
|
||||
|
@ -45,4 +47,8 @@ public class {{configName}} implements ClientRequestFilter {
|
|||
{{/headers}}
|
||||
}
|
||||
|
||||
public Client getClient() {
|
||||
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue