Class LispAddressSerializer
- java.lang.Object
-
- org.opendaylight.lispflowmapping.lisp.serializer.address.LispAddressSerializer
-
- Direct Known Subclasses:
DistinguishedNameSerializer
,Ipv4BinarySerializer
,Ipv4PrefixBinarySerializer
,Ipv4PrefixSerializer
,Ipv4Serializer
,Ipv6BinarySerializer
,Ipv6PrefixBinarySerializer
,Ipv6PrefixSerializer
,Ipv6Serializer
,LcafSerializer
,MacSerializer
,NoAddressSerializer
public class LispAddressSerializer extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static InstanceIdType
DEFAULT_VNI
-
Constructor Summary
Constructors Modifier Constructor Description protected
LispAddressSerializer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Eid
deserializeEid(java.nio.ByteBuffer buffer, LispAddressSerializerContext ctx)
protected Eid
deserializeEidData(java.nio.ByteBuffer buffer, LispAddressSerializerContext ctx)
protected Eid
deserializeLcafEidData(java.nio.ByteBuffer buffer, byte res2, short length, LispAddressSerializerContext ctx)
protected Rloc
deserializeLcafRlocData(java.nio.ByteBuffer buffer, byte res2, short length, LispAddressSerializerContext ctx)
Rloc
deserializeRloc(java.nio.ByteBuffer buffer)
protected Rloc
deserializeRlocData(java.nio.ByteBuffer buffer)
protected SimpleAddress
deserializeSimpleAddressData(java.nio.ByteBuffer buffer, LispAddressSerializerContext ctx)
int
getAddressSize(LispAddress lispAddress)
protected int
getAddressSize(SimpleAddress address)
protected short
getAfi()
static LispAddressSerializer
getInstance()
protected short
getLcafLength(LispAddress lispAddress)
protected byte
getLcafType()
protected InstanceIdType
getVni(LispAddressSerializerContext ctx)
void
serialize(java.nio.ByteBuffer buffer, LispAddress lispAddress)
protected void
serializeData(java.nio.ByteBuffer buffer, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix lispAddress)
protected void
serializeData(java.nio.ByteBuffer buffer, LispAddress lispAddress)
protected void
serializeData(java.nio.ByteBuffer buffer, SimpleAddress lispAddress)
-
-
-
Field Detail
-
DEFAULT_VNI
public static final InstanceIdType DEFAULT_VNI
-
-
Method Detail
-
getInstance
public static LispAddressSerializer getInstance()
-
serializeData
protected void serializeData(java.nio.ByteBuffer buffer, LispAddress lispAddress)
-
serializeData
protected void serializeData(java.nio.ByteBuffer buffer, SimpleAddress lispAddress)
-
serializeData
protected void serializeData(java.nio.ByteBuffer buffer, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.IpPrefix lispAddress)
-
deserializeEidData
protected Eid deserializeEidData(java.nio.ByteBuffer buffer, LispAddressSerializerContext ctx)
-
deserializeSimpleAddressData
protected SimpleAddress deserializeSimpleAddressData(java.nio.ByteBuffer buffer, LispAddressSerializerContext ctx)
-
deserializeLcafEidData
protected Eid deserializeLcafEidData(java.nio.ByteBuffer buffer, byte res2, short length, LispAddressSerializerContext ctx)
-
deserializeRlocData
protected Rloc deserializeRlocData(java.nio.ByteBuffer buffer)
-
deserializeLcafRlocData
protected Rloc deserializeLcafRlocData(java.nio.ByteBuffer buffer, byte res2, short length, LispAddressSerializerContext ctx)
-
getAfi
protected short getAfi()
-
getLcafType
protected byte getLcafType()
-
getLcafLength
protected short getLcafLength(LispAddress lispAddress)
-
getAddressSize
protected int getAddressSize(SimpleAddress address)
-
getAddressSize
public int getAddressSize(LispAddress lispAddress)
-
getVni
protected InstanceIdType getVni(LispAddressSerializerContext ctx)
-
serialize
public void serialize(java.nio.ByteBuffer buffer, LispAddress lispAddress)
-
deserializeEid
public Eid deserializeEid(java.nio.ByteBuffer buffer, LispAddressSerializerContext ctx)
-
deserializeRloc
public Rloc deserializeRloc(java.nio.ByteBuffer buffer)
-
-