• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 The gRPC Authors
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 package io.grpc.okhttp;
18 
19 import io.grpc.Internal;
20 
21 /**
22  * Internal {@link OkHttpChannelBuilder} accessor.  This is intended for usage internal to the gRPC
23  * team.  If you *really* think you need to use this, contact the gRPC team first.
24  */
25 @Internal
26 public final class InternalOkHttpChannelBuilder {
27 
setStatsEnabled(OkHttpChannelBuilder builder, boolean value)28   public static void setStatsEnabled(OkHttpChannelBuilder builder, boolean value) {
29     builder.setStatsEnabled(value);
30   }
31 
disableCheckAuthority(OkHttpChannelBuilder builder)32   public static void disableCheckAuthority(OkHttpChannelBuilder builder) {
33     builder.disableCheckAuthority();
34   }
35 
enableCheckAuthority(OkHttpChannelBuilder builder)36   public static void enableCheckAuthority(OkHttpChannelBuilder builder) {
37     builder.enableCheckAuthority();
38   }
39 
InternalOkHttpChannelBuilder()40   private InternalOkHttpChannelBuilder() {}
41 }
42