2 * Copyright (c) 2014, 2015 Cisco Systems, Inc. and others. All rights reserved.
4 * This program and the accompanying materials are made available under the
5 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
6 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 package org.opendaylight.openflowjava.nx;
11 import org.opendaylight.openflowjava.nx.api.NiciraExtensionCodecRegistrator;
12 import org.opendaylight.openflowjava.nx.codec.action.ConntrackCodec;
13 import org.opendaylight.openflowjava.nx.codec.action.MultipathCodec;
14 import org.opendaylight.openflowjava.nx.codec.action.NiciraActionCodecs;
15 import org.opendaylight.openflowjava.nx.codec.action.OutputRegCodec;
16 import org.opendaylight.openflowjava.nx.codec.action.RegLoadCodec;
17 import org.opendaylight.openflowjava.nx.codec.action.RegMoveCodec;
18 import org.opendaylight.openflowjava.nx.codec.action.ResubmitCodec;
19 import org.opendaylight.openflowjava.nx.codec.action.SetNshc1Codec;
20 import org.opendaylight.openflowjava.nx.codec.action.SetNshc2Codec;
21 import org.opendaylight.openflowjava.nx.codec.action.SetNshc3Codec;
22 import org.opendaylight.openflowjava.nx.codec.action.SetNshc4Codec;
23 import org.opendaylight.openflowjava.nx.codec.action.SetNsiCodec;
24 import org.opendaylight.openflowjava.nx.codec.action.SetNspCodec;
25 import org.opendaylight.openflowjava.nx.codec.match.ArpOpCodec;
26 import org.opendaylight.openflowjava.nx.codec.match.ArpShaCodec;
27 import org.opendaylight.openflowjava.nx.codec.match.ArpSpaCodec;
28 import org.opendaylight.openflowjava.nx.codec.match.ArpThaCodec;
29 import org.opendaylight.openflowjava.nx.codec.match.ArpTpaCodec;
30 import org.opendaylight.openflowjava.nx.codec.match.CtStateCodec;
31 import org.opendaylight.openflowjava.nx.codec.match.CtZoneCodec;
32 import org.opendaylight.openflowjava.nx.codec.match.EthDstCodec;
33 import org.opendaylight.openflowjava.nx.codec.match.EthSrcCodec;
34 import org.opendaylight.openflowjava.nx.codec.match.EthTypeCodec;
35 import org.opendaylight.openflowjava.nx.codec.match.Nshc1Codec;
36 import org.opendaylight.openflowjava.nx.codec.match.Nshc2Codec;
37 import org.opendaylight.openflowjava.nx.codec.match.Nshc3Codec;
38 import org.opendaylight.openflowjava.nx.codec.match.Nshc4Codec;
39 import org.opendaylight.openflowjava.nx.codec.match.NsiCodec;
40 import org.opendaylight.openflowjava.nx.codec.match.NspCodec;
41 import org.opendaylight.openflowjava.nx.codec.match.Reg0Codec;
42 import org.opendaylight.openflowjava.nx.codec.match.Reg1Codec;
43 import org.opendaylight.openflowjava.nx.codec.match.Reg2Codec;
44 import org.opendaylight.openflowjava.nx.codec.match.Reg3Codec;
45 import org.opendaylight.openflowjava.nx.codec.match.Reg4Codec;
46 import org.opendaylight.openflowjava.nx.codec.match.Reg5Codec;
47 import org.opendaylight.openflowjava.nx.codec.match.Reg6Codec;
48 import org.opendaylight.openflowjava.nx.codec.match.Reg7Codec;
49 import org.opendaylight.openflowjava.nx.codec.match.TcpDstCodec;
50 import org.opendaylight.openflowjava.nx.codec.match.TcpSrcCodec;
51 import org.opendaylight.openflowjava.nx.codec.match.TunIdCodec;
52 import org.opendaylight.openflowjava.nx.codec.match.TunIpv4DstCodec;
53 import org.opendaylight.openflowjava.nx.codec.match.TunIpv4SrcCodec;
54 import org.opendaylight.openflowjava.nx.codec.match.UdpDstCodec;
55 import org.opendaylight.openflowjava.nx.codec.match.UdpSrcCodec;
57 import com.google.common.base.Preconditions;
59 public class NiciraExtensionsRegistrator implements AutoCloseable {
61 private final NiciraExtensionCodecRegistrator registrator;
64 * @param registrator cannot be null
66 public NiciraExtensionsRegistrator(NiciraExtensionCodecRegistrator registrator) {
67 this.registrator = Preconditions.checkNotNull(registrator);
70 public void registerNiciraExtensions() {
71 registrator.registerActionDeserializer(RegLoadCodec.DESERIALIZER_KEY, NiciraActionCodecs.REG_LOAD_CODEC);
72 registrator.registerActionSerializer(RegLoadCodec.SERIALIZER_KEY, NiciraActionCodecs.REG_LOAD_CODEC);
73 registrator.registerActionDeserializer(RegMoveCodec.DESERIALIZER_KEY, NiciraActionCodecs.REG_MOVE_CODEC);
74 registrator.registerActionSerializer(RegMoveCodec.SERIALIZER_KEY, NiciraActionCodecs.REG_MOVE_CODEC);
75 registrator.registerActionDeserializer(OutputRegCodec.DESERIALIZER_KEY, NiciraActionCodecs.OUTPUT_REG_CODEC);
76 registrator.registerActionSerializer(OutputRegCodec.SERIALIZER_KEY, NiciraActionCodecs.OUTPUT_REG_CODEC);
77 registrator.registerActionSerializer(ResubmitCodec.SERIALIZER_KEY, NiciraActionCodecs.RESUBMIT_CODEC);
78 registrator.registerActionDeserializer(ResubmitCodec.DESERIALIZER_KEY, NiciraActionCodecs.RESUBMIT_CODEC);
79 registrator.registerActionDeserializer(ResubmitCodec.TABLE_DESERIALIZER_KEY, NiciraActionCodecs.RESUBMIT_CODEC);
80 registrator.registerActionSerializer(MultipathCodec.SERIALIZER_KEY, NiciraActionCodecs.MULTIPATH_CODEC);
81 registrator.registerActionDeserializer(MultipathCodec.DESERIALIZER_KEY, NiciraActionCodecs.MULTIPATH_CODEC);
82 registrator.registerActionDeserializer(SetNspCodec.DESERIALIZER_KEY, NiciraActionCodecs.SET_NSP_CODEC);
83 registrator.registerActionSerializer(SetNspCodec.SERIALIZER_KEY, NiciraActionCodecs.SET_NSP_CODEC);
84 registrator.registerActionDeserializer(SetNshc1Codec.DESERIALIZER_KEY, NiciraActionCodecs.SET_NSC1_CODEC);
85 registrator.registerActionSerializer(SetNshc1Codec.SERIALIZER_KEY, NiciraActionCodecs.SET_NSC1_CODEC);
86 registrator.registerActionDeserializer(SetNshc2Codec.DESERIALIZER_KEY, NiciraActionCodecs.SET_NSC2_CODEC);
87 registrator.registerActionSerializer(SetNshc2Codec.SERIALIZER_KEY, NiciraActionCodecs.SET_NSC2_CODEC);
88 registrator.registerActionDeserializer(SetNshc3Codec.DESERIALIZER_KEY, NiciraActionCodecs.SET_NSC3_CODEC);
89 registrator.registerActionSerializer(SetNshc3Codec.SERIALIZER_KEY, NiciraActionCodecs.SET_NSC3_CODEC);
90 registrator.registerActionDeserializer(SetNshc4Codec.DESERIALIZER_KEY, NiciraActionCodecs.SET_NSC4_CODEC);
91 registrator.registerActionSerializer(SetNshc4Codec.SERIALIZER_KEY, NiciraActionCodecs.SET_NSC4_CODEC);
92 registrator.registerActionDeserializer(SetNsiCodec.DESERIALIZER_KEY, NiciraActionCodecs.SET_NSI_CODEC);
93 registrator.registerActionSerializer(SetNsiCodec.SERIALIZER_KEY, NiciraActionCodecs.SET_NSI_CODEC);
94 registrator.registerActionSerializer(ConntrackCodec.SERIALIZER_KEY, NiciraActionCodecs.CONNTRACK_CODEC);
95 registrator.registerActionDeserializer(ConntrackCodec.DESERIALIZER_KEY, NiciraActionCodecs.CONNTRACK_CODEC);
97 registrator.registerMatchEntrySerializer(Reg0Codec.SERIALIZER_KEY, NiciraMatchCodecs.REG0_CODEC);
98 registrator.registerMatchEntryDeserializer(Reg0Codec.DESERIALIZER_KEY, NiciraMatchCodecs.REG0_CODEC);
99 registrator.registerMatchEntrySerializer(Reg1Codec.SERIALIZER_KEY, NiciraMatchCodecs.REG1_CODEC);
100 registrator.registerMatchEntryDeserializer(Reg1Codec.DESERIALIZER_KEY, NiciraMatchCodecs.REG1_CODEC);
101 registrator.registerMatchEntrySerializer(Reg2Codec.SERIALIZER_KEY, NiciraMatchCodecs.REG2_CODEC);
102 registrator.registerMatchEntryDeserializer(Reg2Codec.DESERIALIZER_KEY, NiciraMatchCodecs.REG2_CODEC);
103 registrator.registerMatchEntrySerializer(Reg3Codec.SERIALIZER_KEY, NiciraMatchCodecs.REG3_CODEC);
104 registrator.registerMatchEntryDeserializer(Reg3Codec.DESERIALIZER_KEY, NiciraMatchCodecs.REG3_CODEC);
105 registrator.registerMatchEntrySerializer(Reg4Codec.SERIALIZER_KEY, NiciraMatchCodecs.REG4_CODEC);
106 registrator.registerMatchEntryDeserializer(Reg4Codec.DESERIALIZER_KEY, NiciraMatchCodecs.REG4_CODEC);
107 registrator.registerMatchEntrySerializer(Reg5Codec.SERIALIZER_KEY, NiciraMatchCodecs.REG5_CODEC);
108 registrator.registerMatchEntryDeserializer(Reg5Codec.DESERIALIZER_KEY, NiciraMatchCodecs.REG5_CODEC);
109 registrator.registerMatchEntrySerializer(Reg6Codec.SERIALIZER_KEY, NiciraMatchCodecs.REG6_CODEC);
110 registrator.registerMatchEntryDeserializer(Reg6Codec.DESERIALIZER_KEY, NiciraMatchCodecs.REG6_CODEC);
111 registrator.registerMatchEntrySerializer(Reg7Codec.SERIALIZER_KEY, NiciraMatchCodecs.REG7_CODEC);
112 registrator.registerMatchEntryDeserializer(Reg7Codec.DESERIALIZER_KEY, NiciraMatchCodecs.REG7_CODEC);
113 registrator.registerMatchEntrySerializer(TunIdCodec.SERIALIZER_KEY, NiciraMatchCodecs.TUN_ID_CODEC);
114 registrator.registerMatchEntryDeserializer(TunIdCodec.DESERIALIZER_KEY, NiciraMatchCodecs.TUN_ID_CODEC);
115 registrator.registerMatchEntrySerializer(ArpOpCodec.SERIALIZER_KEY, NiciraMatchCodecs.ARP_OP_CODEC);
116 registrator.registerMatchEntryDeserializer(ArpOpCodec.DESERIALIZER_KEY, NiciraMatchCodecs.ARP_OP_CODEC);
117 registrator.registerMatchEntrySerializer(ArpShaCodec.SERIALIZER_KEY, NiciraMatchCodecs.ARP_SHA_CODEC);
118 registrator.registerMatchEntryDeserializer(ArpShaCodec.DESERIALIZER_KEY, NiciraMatchCodecs.ARP_SHA_CODEC);
119 registrator.registerMatchEntrySerializer(ArpSpaCodec.SERIALIZER_KEY, NiciraMatchCodecs.ARP_SPA_CODEC);
120 registrator.registerMatchEntryDeserializer(ArpSpaCodec.DESERIALIZER_KEY, NiciraMatchCodecs.ARP_SPA_CODEC);
121 registrator.registerMatchEntrySerializer(ArpThaCodec.SERIALIZER_KEY, NiciraMatchCodecs.ARP_THA_CODEC);
122 registrator.registerMatchEntryDeserializer(ArpThaCodec.DESERIALIZER_KEY, NiciraMatchCodecs.ARP_THA_CODEC);
123 registrator.registerMatchEntrySerializer(ArpTpaCodec.SERIALIZER_KEY, NiciraMatchCodecs.ARP_TPA_CODEC);
124 registrator.registerMatchEntryDeserializer(ArpTpaCodec.DESERIALIZER_KEY, NiciraMatchCodecs.ARP_TPA_CODEC);
125 registrator.registerMatchEntrySerializer(EthDstCodec.SERIALIZER_KEY, NiciraMatchCodecs.ETH_DST_CODEC);
126 registrator.registerMatchEntryDeserializer(EthDstCodec.DESERIALIZER_KEY, NiciraMatchCodecs.ETH_DST_CODEC);
127 registrator.registerMatchEntrySerializer(EthSrcCodec.SERIALIZER_KEY, NiciraMatchCodecs.ETH_SRC_CODEC);
128 registrator.registerMatchEntryDeserializer(EthSrcCodec.DESERIALIZER_KEY, NiciraMatchCodecs.ETH_SRC_CODEC);
129 registrator.registerMatchEntrySerializer(EthTypeCodec.SERIALIZER_KEY, NiciraMatchCodecs.ETH_TYPE_CODEC);
130 registrator.registerMatchEntryDeserializer(EthTypeCodec.DESERIALIZER_KEY, NiciraMatchCodecs.ETH_TYPE_CODEC);
131 registrator.registerMatchEntrySerializer(NspCodec.SERIALIZER_KEY, NiciraMatchCodecs.NSP_CODEC);
132 registrator.registerMatchEntryDeserializer(NspCodec.DESERIALIZER_KEY, NiciraMatchCodecs.NSP_CODEC);
133 registrator.registerMatchEntrySerializer(Nshc1Codec.SERIALIZER_KEY, NiciraMatchCodecs.NSC1_CODEC);
134 registrator.registerMatchEntryDeserializer(Nshc1Codec.DESERIALIZER_KEY, NiciraMatchCodecs.NSC1_CODEC);
135 registrator.registerMatchEntrySerializer(Nshc2Codec.SERIALIZER_KEY, NiciraMatchCodecs.NSC2_CODEC);
136 registrator.registerMatchEntryDeserializer(Nshc2Codec.DESERIALIZER_KEY, NiciraMatchCodecs.NSC2_CODEC);
137 registrator.registerMatchEntrySerializer(Nshc3Codec.SERIALIZER_KEY, NiciraMatchCodecs.NSC3_CODEC);
138 registrator.registerMatchEntryDeserializer(Nshc3Codec.DESERIALIZER_KEY, NiciraMatchCodecs.NSC3_CODEC);
139 registrator.registerMatchEntrySerializer(Nshc4Codec.SERIALIZER_KEY, NiciraMatchCodecs.NSC4_CODEC);
140 registrator.registerMatchEntryDeserializer(Nshc4Codec.DESERIALIZER_KEY, NiciraMatchCodecs.NSC4_CODEC);
141 registrator.registerMatchEntrySerializer(NsiCodec.SERIALIZER_KEY, NiciraMatchCodecs.NSI_CODEC);
142 registrator.registerMatchEntryDeserializer(NsiCodec.DESERIALIZER_KEY, NiciraMatchCodecs.NSI_CODEC);
143 registrator.registerMatchEntrySerializer(TunIpv4DstCodec.SERIALIZER_KEY, NiciraMatchCodecs.TUN_IPV4_DST_CODEC);
144 registrator.registerMatchEntryDeserializer(TunIpv4DstCodec.DESERIALIZER_KEY, NiciraMatchCodecs.TUN_IPV4_DST_CODEC);
145 registrator.registerMatchEntrySerializer(TunIpv4SrcCodec.SERIALIZER_KEY, NiciraMatchCodecs.TUN_IPV4_SRC_CODEC);
146 registrator.registerMatchEntryDeserializer(TunIpv4SrcCodec.DESERIALIZER_KEY, NiciraMatchCodecs.TUN_IPV4_SRC_CODEC);
147 registrator.registerMatchEntrySerializer(TcpSrcCodec.SERIALIZER_KEY, NiciraMatchCodecs.TCP_SRC_CODEC);
148 registrator.registerMatchEntryDeserializer(TcpSrcCodec.DESERIALIZER_KEY, NiciraMatchCodecs.TCP_SRC_CODEC);
149 registrator.registerMatchEntrySerializer(TcpDstCodec.SERIALIZER_KEY, NiciraMatchCodecs.TCP_DST_CODEC);
150 registrator.registerMatchEntryDeserializer(TcpDstCodec.DESERIALIZER_KEY, NiciraMatchCodecs.TCP_DST_CODEC);
151 registrator.registerMatchEntrySerializer(UdpSrcCodec.SERIALIZER_KEY, NiciraMatchCodecs.UDP_SRC_CODEC);
152 registrator.registerMatchEntryDeserializer(UdpSrcCodec.DESERIALIZER_KEY, NiciraMatchCodecs.UDP_SRC_CODEC);
153 registrator.registerMatchEntrySerializer(UdpDstCodec.SERIALIZER_KEY, NiciraMatchCodecs.UDP_DST_CODEC);
154 registrator.registerMatchEntryDeserializer(UdpDstCodec.DESERIALIZER_KEY, NiciraMatchCodecs.UDP_DST_CODEC);
155 registrator.registerMatchEntrySerializer(CtStateCodec.SERIALIZER_KEY, NiciraMatchCodecs.CT_ST_CODEC);
156 registrator.registerMatchEntryDeserializer(CtStateCodec.DESERIALIZER_KEY, NiciraMatchCodecs.CT_ST_CODEC);
157 registrator.registerMatchEntrySerializer(CtZoneCodec.SERIALIZER_KEY, NiciraMatchCodecs.CT_ZONE_CODEC);
158 registrator.registerMatchEntryDeserializer(CtZoneCodec.DESERIALIZER_KEY, NiciraMatchCodecs.CT_ZONE_CODEC);
161 public void unregisterExtensions() {
162 registrator.unregisterActionDeserializer(RegLoadCodec.DESERIALIZER_KEY);
163 registrator.unregisterActionSerializer(RegLoadCodec.SERIALIZER_KEY);
164 registrator.unregisterActionDeserializer(RegMoveCodec.DESERIALIZER_KEY);
165 registrator.unregisterActionSerializer(RegMoveCodec.SERIALIZER_KEY);
166 registrator.unregisterActionDeserializer(OutputRegCodec.DESERIALIZER_KEY);
167 registrator.unregisterActionSerializer(OutputRegCodec.SERIALIZER_KEY);
168 registrator.unregisterActionSerializer(ResubmitCodec.SERIALIZER_KEY);
169 registrator.unregisterActionDeserializer(ResubmitCodec.TABLE_DESERIALIZER_KEY);
170 registrator.unregisterActionDeserializer(ResubmitCodec.DESERIALIZER_KEY);
171 registrator.unregisterActionSerializer(MultipathCodec.SERIALIZER_KEY);
172 registrator.unregisterActionDeserializer(MultipathCodec.DESERIALIZER_KEY);
173 registrator.unregisterActionDeserializer(SetNsiCodec.DESERIALIZER_KEY);
174 registrator.unregisterActionSerializer(SetNsiCodec.SERIALIZER_KEY);
175 registrator.unregisterActionDeserializer(SetNspCodec.DESERIALIZER_KEY);
176 registrator.unregisterActionSerializer(SetNspCodec.SERIALIZER_KEY);
177 registrator.unregisterActionSerializer(SetNshc1Codec.SERIALIZER_KEY);
178 registrator.unregisterActionDeserializer(SetNshc2Codec.DESERIALIZER_KEY);
179 registrator.unregisterActionSerializer(SetNshc2Codec.SERIALIZER_KEY);
180 registrator.unregisterActionDeserializer(SetNshc3Codec.DESERIALIZER_KEY);
181 registrator.unregisterActionSerializer(SetNshc3Codec.SERIALIZER_KEY);
182 registrator.unregisterActionDeserializer(SetNshc4Codec.DESERIALIZER_KEY);
183 registrator.unregisterActionSerializer(SetNshc4Codec.SERIALIZER_KEY);
184 registrator.unregisterActionSerializer(ConntrackCodec.SERIALIZER_KEY);
185 registrator.unregisterActionDeserializer(ConntrackCodec.DESERIALIZER_KEY);
187 registrator.unregisterMatchEntrySerializer(Reg0Codec.SERIALIZER_KEY);
188 registrator.unregisterMatchEntryDeserializer(Reg0Codec.DESERIALIZER_KEY);
189 registrator.unregisterMatchEntrySerializer(Reg1Codec.SERIALIZER_KEY);
190 registrator.unregisterMatchEntryDeserializer(Reg1Codec.DESERIALIZER_KEY);
191 registrator.unregisterMatchEntrySerializer(Reg2Codec.SERIALIZER_KEY);
192 registrator.unregisterMatchEntryDeserializer(Reg2Codec.DESERIALIZER_KEY);
193 registrator.unregisterMatchEntrySerializer(Reg3Codec.SERIALIZER_KEY);
194 registrator.unregisterMatchEntryDeserializer(Reg3Codec.DESERIALIZER_KEY);
195 registrator.unregisterMatchEntrySerializer(Reg4Codec.SERIALIZER_KEY);
196 registrator.unregisterMatchEntryDeserializer(Reg4Codec.DESERIALIZER_KEY);
197 registrator.unregisterMatchEntrySerializer(Reg5Codec.SERIALIZER_KEY);
198 registrator.unregisterMatchEntryDeserializer(Reg5Codec.DESERIALIZER_KEY);
199 registrator.unregisterMatchEntrySerializer(Reg6Codec.SERIALIZER_KEY);
200 registrator.unregisterMatchEntryDeserializer(Reg6Codec.DESERIALIZER_KEY);
201 registrator.unregisterMatchEntrySerializer(Reg7Codec.SERIALIZER_KEY);
202 registrator.unregisterMatchEntryDeserializer(Reg7Codec.DESERIALIZER_KEY);
203 registrator.unregisterMatchEntrySerializer(TunIdCodec.SERIALIZER_KEY);
204 registrator.unregisterMatchEntryDeserializer(TunIdCodec.DESERIALIZER_KEY);
205 registrator.unregisterMatchEntrySerializer(ArpOpCodec.SERIALIZER_KEY);
206 registrator.unregisterMatchEntryDeserializer(ArpOpCodec.DESERIALIZER_KEY);
207 registrator.unregisterMatchEntrySerializer(ArpShaCodec.SERIALIZER_KEY);
208 registrator.unregisterMatchEntryDeserializer(ArpShaCodec.DESERIALIZER_KEY);
209 registrator.unregisterMatchEntrySerializer(ArpSpaCodec.SERIALIZER_KEY);
210 registrator.unregisterMatchEntryDeserializer(ArpSpaCodec.DESERIALIZER_KEY);
211 registrator.unregisterMatchEntrySerializer(ArpThaCodec.SERIALIZER_KEY);
212 registrator.unregisterMatchEntryDeserializer(ArpThaCodec.DESERIALIZER_KEY);
213 registrator.unregisterMatchEntrySerializer(ArpTpaCodec.SERIALIZER_KEY);
214 registrator.unregisterMatchEntryDeserializer(ArpTpaCodec.DESERIALIZER_KEY);
215 registrator.unregisterMatchEntrySerializer(EthDstCodec.SERIALIZER_KEY);
216 registrator.unregisterMatchEntryDeserializer(EthDstCodec.DESERIALIZER_KEY);
217 registrator.unregisterMatchEntrySerializer(EthSrcCodec.SERIALIZER_KEY);
218 registrator.unregisterMatchEntryDeserializer(EthSrcCodec.DESERIALIZER_KEY);
219 registrator.unregisterMatchEntrySerializer(EthTypeCodec.SERIALIZER_KEY);
220 registrator.unregisterMatchEntryDeserializer(EthTypeCodec.DESERIALIZER_KEY);
221 registrator.unregisterMatchEntrySerializer(NspCodec.SERIALIZER_KEY);
222 registrator.unregisterMatchEntryDeserializer(NspCodec.DESERIALIZER_KEY);
223 registrator.unregisterMatchEntrySerializer(NsiCodec.SERIALIZER_KEY);
224 registrator.unregisterMatchEntryDeserializer(NsiCodec.DESERIALIZER_KEY);
225 registrator.unregisterMatchEntrySerializer(Nshc1Codec.SERIALIZER_KEY);
226 registrator.unregisterMatchEntryDeserializer(Nshc1Codec.DESERIALIZER_KEY);
227 registrator.unregisterMatchEntrySerializer(Nshc2Codec.SERIALIZER_KEY);
228 registrator.unregisterMatchEntryDeserializer(Nshc2Codec.DESERIALIZER_KEY);
229 registrator.unregisterMatchEntrySerializer(Nshc3Codec.SERIALIZER_KEY);
230 registrator.unregisterMatchEntryDeserializer(Nshc3Codec.DESERIALIZER_KEY);
231 registrator.unregisterMatchEntrySerializer(Nshc4Codec.SERIALIZER_KEY);
232 registrator.unregisterMatchEntryDeserializer(Nshc4Codec.DESERIALIZER_KEY);
233 registrator.unregisterMatchEntrySerializer(TunIpv4DstCodec.SERIALIZER_KEY);
234 registrator.unregisterMatchEntryDeserializer(TunIpv4DstCodec.DESERIALIZER_KEY);
235 registrator.unregisterMatchEntrySerializer(TunIpv4SrcCodec.SERIALIZER_KEY);
236 registrator.unregisterMatchEntryDeserializer(TunIpv4SrcCodec.DESERIALIZER_KEY);
237 registrator.unregisterMatchEntrySerializer(TcpSrcCodec.SERIALIZER_KEY);
238 registrator.unregisterMatchEntryDeserializer(TcpSrcCodec.DESERIALIZER_KEY);
239 registrator.unregisterMatchEntrySerializer(TcpDstCodec.SERIALIZER_KEY);
240 registrator.unregisterMatchEntryDeserializer(TcpDstCodec.DESERIALIZER_KEY);
241 registrator.unregisterMatchEntrySerializer(UdpSrcCodec.SERIALIZER_KEY);
242 registrator.unregisterMatchEntryDeserializer(UdpSrcCodec.DESERIALIZER_KEY);
243 registrator.unregisterMatchEntrySerializer(UdpDstCodec.SERIALIZER_KEY);
244 registrator.unregisterMatchEntryDeserializer(UdpDstCodec.DESERIALIZER_KEY);
245 registrator.unregisterMatchEntrySerializer(CtStateCodec.SERIALIZER_KEY);
246 registrator.unregisterMatchEntryDeserializer(CtStateCodec.DESERIALIZER_KEY);
247 registrator.unregisterMatchEntrySerializer(CtZoneCodec.SERIALIZER_KEY);
248 registrator.unregisterMatchEntryDeserializer(CtZoneCodec.DESERIALIZER_KEY);
252 public void close() throws Exception {
253 unregisterExtensions();