Class Header
- java.lang.Object
-
- org.opennms.netmgt.telemetry.protocols.bmp.parser.proto.bgp.Header
-
public class Header extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Header.Type
-
Field Summary
Fields Modifier and Type Field Description int
length
static int
SIZE
Header.Type
type
-
Constructor Summary
Constructors Constructor Description Header(io.netty.buffer.ByteBuf buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Packet
parsePayload(io.netty.buffer.ByteBuf buffer, PeerFlags flags, java.util.Optional<PeerInfo> peerInfo)
java.lang.String
toString()
-
-
-
Field Detail
-
SIZE
public static final int SIZE
- See Also:
- Constant Field Values
-
length
public final int length
-
type
public final Header.Type type
-
-
Constructor Detail
-
Header
public Header(io.netty.buffer.ByteBuf buffer) throws InvalidPacketException
- Throws:
InvalidPacketException
-
-
Method Detail
-
parsePayload
public Packet parsePayload(io.netty.buffer.ByteBuf buffer, PeerFlags flags, java.util.Optional<PeerInfo> peerInfo) throws InvalidPacketException
- Throws:
InvalidPacketException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-