2 * Copyright (C) 2013 EBay Software Foundation
3 * Copyright (C) 2014 Cisco Systems, Inc.
5 * This program and the accompanying materials are made available under the
6 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
7 * and is available at http://www.eclipse.org/legal/epl-v10.html
9 * Authors : Ashwin Raveendran, Madhu Venugopal, Thomas Bachman
11 package org.opendaylight.groupbasedpolicy.renderer.opflex.jsonrpc;
13 import io.netty.channel.ChannelHandlerContext;
14 import io.netty.handler.codec.MessageToMessageEncoder;
16 import java.util.List;
18 public class JsonRpcEncoder extends MessageToMessageEncoder<Object> {
20 protected void encode(ChannelHandlerContext ctx, Object msg, List<Object> out) throws Exception {