@Override public ClientBuilder readTimeout(long timeout, TimeUnit unit) { if (timeout < 0) { throw new IllegalArgumentException("Negative timeout."); } this.property(ClientProperties.READ_TIMEOUT, Math.toIntExact(unit.toMillis(timeout))); return this; }
@Override public ClientBuilder readTimeout(long timeout, TimeUnit unit) { if (timeout < 0) { throw new IllegalArgumentException("Negative timeout."); } this.property(ClientProperties.READ_TIMEOUT, Math.toIntExact(unit.toMillis(timeout))); return this; }
@Override public ClientBuilder connectTimeout(long timeout, TimeUnit unit) { if (timeout < 0) { throw new IllegalArgumentException("Negative timeout."); } this.property(ClientProperties.CONNECT_TIMEOUT, Math.toIntExact(unit.toMillis(timeout))); return this; }
@Override public ClientBuilder connectTimeout(long timeout, TimeUnit unit) { if (timeout < 0) { throw new IllegalArgumentException("Negative timeout."); } this.property(ClientProperties.CONNECT_TIMEOUT, Math.toIntExact(unit.toMillis(timeout))); return this; }
@Override public ClientBuilder connectTimeout(long timeout, TimeUnit unit) { if (timeout < 0) { throw new IllegalArgumentException("Negative timeout."); } this.property(ClientProperties.CONNECT_TIMEOUT, Math.toIntExact(unit.toMillis(timeout))); return this; }
@Override public ClientBuilder readTimeout(long timeout, TimeUnit unit) { if (timeout < 0) { throw new IllegalArgumentException("Negative timeout."); } this.property(ClientProperties.READ_TIMEOUT, Math.toIntExact(unit.toMillis(timeout))); return this; }
protected JerseyClientBuilder clientBuilder() { return new JerseyClientBuilder() .register(new JacksonFeature(getObjectMapper())) .property(ClientProperties.CONNECT_TIMEOUT, DEFAULT_CONNECT_TIMEOUT_MS) .property(ClientProperties.READ_TIMEOUT, DEFAULT_READ_TIMEOUT_MS) .property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true); } }
protected JerseyClientBuilder clientBuilder() { return new JerseyClientBuilder() .register(new JacksonFeature(getObjectMapper())) .property(ClientProperties.CONNECT_TIMEOUT, DEFAULT_CONNECT_TIMEOUT_MS) .property(ClientProperties.READ_TIMEOUT, DEFAULT_READ_TIMEOUT_MS) .property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true); } }
@Override public ClientBuilder connectTimeout(long timeout, TimeUnit unit) { if (timeout < 0) { throw new IllegalArgumentException("Negative timeout."); } this.property(ClientProperties.CONNECT_TIMEOUT, Math.toIntExact(unit.toMillis(timeout))); return this; }
@Override public ClientBuilder readTimeout(long timeout, TimeUnit unit) { if (timeout < 0) { throw new IllegalArgumentException("Negative timeout."); } this.property(ClientProperties.READ_TIMEOUT, Math.toIntExact(unit.toMillis(timeout))); return this; }
protected JerseyClientBuilder clientBuilder() { return new JerseyClientBuilder() .register(new JacksonBinder(getObjectMapper())) .property(ClientProperties.CONNECT_TIMEOUT, DEFAULT_CONNECT_TIMEOUT_MS) .property(ClientProperties.READ_TIMEOUT, DEFAULT_READ_TIMEOUT_MS) .property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true); } }
protected JerseyClientBuilder clientBuilder() { return new JerseyClientBuilder() .register(new JacksonBinder(getObjectMapper())) .property(ClientProperties.CONNECT_TIMEOUT, DEFAULT_CONNECT_TIMEOUT_MS) .property(ClientProperties.READ_TIMEOUT, DEFAULT_READ_TIMEOUT_MS) .property(HttpUrlConnectorProvider.SET_METHOD_WORKAROUND, true); } }