Activate code generation
[bgpcep.git] / bgp / parser-api / src / main / java / org / opendaylight / protocol / bgp / parser / BGPMessageParser.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.protocol.bgp.parser;
9
10 import java.io.Closeable;
11
12 import org.opendaylight.protocol.framework.DeserializerException;
13 import org.opendaylight.protocol.framework.DocumentedException;
14 import org.opendaylight.protocol.framework.ProtocolMessageFactory;
15 import org.opendaylight.protocol.framework.ProtocolMessageHeader;
16
17 /**
18  * Parser for BGP Messages.
19  */
20 public interface BGPMessageParser extends ProtocolMessageFactory, Closeable {
21
22         @Override
23         public BGPMessage parse(byte[] bytes, ProtocolMessageHeader msgHeader) throws DeserializerException, DocumentedException;
24 }