X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=pcep%2Fspi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fprotocol%2Fpcep%2Fspi%2FMessageRegistry.java;fp=pcep%2Fspi%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fprotocol%2Fpcep%2Fspi%2FMessageRegistry.java;h=0000000000000000000000000000000000000000;hb=573e76691c197a1756e48d54d24f1f9ee76df472;hp=2b5ed015bcf9c4dc1c90d24dc07a8d9fed64ad88;hpb=f56de4cc1d9e374e2e353f335ecc5d244060275b;p=bgpcep.git diff --git a/pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/MessageRegistry.java b/pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/MessageRegistry.java deleted file mode 100644 index 2b5ed015bc..0000000000 --- a/pcep/spi/src/main/java/org/opendaylight/protocol/pcep/spi/MessageRegistry.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved. - * - * This program and the accompanying materials are made available under the - * terms of the Eclipse Public License v1.0 which accompanies this distribution, - * and is available at http://www.eclipse.org/legal/epl-v10.html - */ -package org.opendaylight.protocol.pcep.spi; - -import io.netty.buffer.ByteBuf; -import java.util.List; -import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.pcep.types.rev181109.Message; - -public interface MessageRegistry { - /** - * Finds parser for given message type in the registry. Delegates parsing to found parser. - * - * @param messageType message type, key in parser registry - * @param buffer message wrapped in ByteBuf - * @param errors list of error messages, that is filled during parsing - * @return null if the parser for this message could not be found - * @throws PCEPDeserializerException if the parsing did not succeed - */ - Message parseMessage(int messageType, ByteBuf buffer, List errors) throws PCEPDeserializerException; - - /** - * Find serializer for given message. Delegates parsing to found serializer. - * - * @param message to be parsed - * @param buffer byte buffer that will be filled with serialized message - */ - void serializeMessage(Message message, ByteBuf buffer); -}