Class Ipv4PrefixSerializer
- java.lang.Object
-
- org.opendaylight.lispflowmapping.lisp.serializer.address.LispAddressSerializer
-
- org.opendaylight.lispflowmapping.lisp.serializer.address.Ipv4PrefixSerializer
-
public final class Ipv4PrefixSerializer extends LispAddressSerializer
Class to (de)serialize IPv4 prefixes from/to String representation.- Author:
- Lorand Jakab
-
-
Field Summary
Fields Modifier and Type Field Description protected static org.slf4j.Logger
LOG
-
Fields inherited from class org.opendaylight.lispflowmapping.lisp.serializer.address.LispAddressSerializer
DEFAULT_VNI
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Eid
deserializeEidData(java.nio.ByteBuffer buffer, LispAddressSerializerContext ctx)
protected Rloc
deserializeRlocData(java.nio.ByteBuffer buffer)
protected SimpleAddress
deserializeSimpleAddressData(java.nio.ByteBuffer buffer, LispAddressSerializerContext ctx)
int
getAddressSize(LispAddress lispAddress)
int
getAddressSize(SimpleAddress simpleAddress)
protected short
getAfi()
static Ipv4PrefixSerializer
getInstance()
protected void
serializeData(java.nio.ByteBuffer buffer, LispAddress lispAddress)
protected void
serializeData(java.nio.ByteBuffer buffer, SimpleAddress address)
-
Methods inherited from class org.opendaylight.lispflowmapping.lisp.serializer.address.LispAddressSerializer
deserializeEid, deserializeLcafEidData, deserializeLcafRlocData, deserializeRloc, getLcafLength, getLcafType, getVni, serialize, serializeData
-
-
-
-
Method Detail
-
getInstance
public static Ipv4PrefixSerializer getInstance()
-
getAddressSize
public int getAddressSize(LispAddress lispAddress)
- Overrides:
getAddressSize
in classLispAddressSerializer
-
getAddressSize
public int getAddressSize(SimpleAddress simpleAddress)
- Overrides:
getAddressSize
in classLispAddressSerializer
-
getAfi
protected short getAfi()
- Overrides:
getAfi
in classLispAddressSerializer
-
serializeData
protected void serializeData(java.nio.ByteBuffer buffer, LispAddress lispAddress)
- Overrides:
serializeData
in classLispAddressSerializer
-
serializeData
protected void serializeData(java.nio.ByteBuffer buffer, SimpleAddress address)
- Overrides:
serializeData
in classLispAddressSerializer
-
deserializeEidData
protected Eid deserializeEidData(java.nio.ByteBuffer buffer, LispAddressSerializerContext ctx)
- Overrides:
deserializeEidData
in classLispAddressSerializer
-
deserializeRlocData
protected Rloc deserializeRlocData(java.nio.ByteBuffer buffer)
- Overrides:
deserializeRlocData
in classLispAddressSerializer
-
deserializeSimpleAddressData
protected SimpleAddress deserializeSimpleAddressData(java.nio.ByteBuffer buffer, LispAddressSerializerContext ctx)
- Overrides:
deserializeSimpleAddressData
in classLispAddressSerializer
-
-