- remove TLS/SSL support from netconf server and client
[controller.git] / opendaylight / netconf / netconf-util / src / main / java / org / opendaylight / controller / netconf / util / handler / NetconfHandlerFactory.java
1 /*
2  * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
3  *
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
7  */
8 package org.opendaylight.controller.netconf.util.handler;
9
10 import io.netty.channel.ChannelHandler;
11 import org.opendaylight.controller.netconf.api.NetconfMessage;
12 import org.opendaylight.controller.netconf.util.messages.NetconfMessageFactory;
13 import org.opendaylight.protocol.framework.ProtocolHandlerFactory;
14 import org.opendaylight.protocol.framework.ProtocolMessageDecoder;
15 import org.opendaylight.protocol.framework.ProtocolMessageEncoder;
16
17 public class NetconfHandlerFactory extends ProtocolHandlerFactory<NetconfMessage> {
18
19     public NetconfHandlerFactory(final NetconfMessageFactory msgFactory) {
20         super(msgFactory);
21     }
22
23     @Override
24     public ChannelHandler[] getEncoders() {
25         return new ChannelHandler[] { new ProtocolMessageEncoder(this.msgFactory) };
26     }
27
28     @Override
29     public ChannelHandler[] getDecoders() {
30         return new ChannelHandler[] { new ProtocolMessageDecoder(this.msgFactory) };
31     }
32
33 }