private void initializeFunctionService() { if (functionService == null) { HttpUrl defaultHostName = HttpUrl.parse(defaultHostName()); if (defaultHostName == null) { defaultHostName = new HttpUrl.Builder().host(defaultHostName()).scheme("http").build(); } functionService = manager().restClient().newBuilder() .withBaseUrl(defaultHostName.toString()) .withCredentials(new FunctionCredentials(this)) .withLogLevel(LogLevel.BODY_AND_HEADERS) .build() .retrofit().create(FunctionService.class); } }
.withResponseBuilderFactory(new AzureResponseBuilder.Factory()) .withCredentials(credentials) .withLogLevel(LogLevel.NONE) .withNetworkInterceptor(new ResourceGroupTaggingInterceptor()) .withNetworkInterceptor(new LoggingInterceptor(LogLevel.BODY_AND_HEADERS)) .withNetworkInterceptor(new ResourceGroupTaggingInterceptor()) .withCredentials(credentials) .withLogLevel(LogLevel.NONE) .withReadTimeout(3, TimeUnit.MINUTES) .withNetworkInterceptor(new LoggingInterceptor(LogLevel.BODY_AND_HEADERS));
@SuppressWarnings("unchecked") @Override public T withLogLevel(LogLevel level) { this.restClientBuilder = this.restClientBuilder.withLogLevel(level); return (T) this; }
@SuppressWarnings("unchecked") @Override public T withLogLevel(LogLevel level) { this.restClientBuilder = this.restClientBuilder.withLogLevel(level); return (T) this; }
@SuppressWarnings("unchecked") @Override public T withLogLevel(LogLevel level) { this.restClientBuilder = this.restClientBuilder.withLogLevel(level); return (T) this; }