1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package io.netty.handler.ssl;
17
18 import java.util.List;
19
20 import static io.netty.util.internal.ObjectUtil.checkNotNull;
21
22
23
24
25
26
27 @Deprecated
28 public final class OpenSslDefaultApplicationProtocolNegotiator implements OpenSslApplicationProtocolNegotiator {
29 private final ApplicationProtocolConfig config;
30 public OpenSslDefaultApplicationProtocolNegotiator(ApplicationProtocolConfig config) {
31 this.config = checkNotNull(config, "config");
32 }
33
34 @Override
35 public List<String> protocols() {
36 return config.supportedProtocols();
37 }
38
39 @Override
40 public ApplicationProtocolConfig.Protocol protocol() {
41 return config.protocol();
42 }
43
44 @Override
45 public ApplicationProtocolConfig.SelectorFailureBehavior selectorFailureBehavior() {
46 return config.selectorFailureBehavior();
47 }
48
49 @Override
50 public ApplicationProtocolConfig.SelectedListenerFailureBehavior selectedListenerFailureBehavior() {
51 return config.selectedListenerFailureBehavior();
52 }
53 }