Class LispAddressStringifier
- java.lang.Object
-
- org.opendaylight.lispflowmapping.lisp.util.LispAddressStringifier
-
public final class LispAddressStringifier extends java.lang.Object
Utility class with static methods returning string representations of supported LISP address types, both for use in URLs and for user friendly output.- Author:
- Lorand Jakab
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
LispAddressStringifier.Destination
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getString(java.util.Set<Eid> eids)
static java.lang.String
getString(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)
static java.lang.String
getString(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddress lispAddress)
static java.lang.String
getString(XtrId xtrId)
protected static java.lang.String
getStringFromAfiList(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.AfiList addr)
protected static java.lang.String
getStringFromApplicationData(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.ApplicationData addr)
protected static java.lang.String
getStringFromAsNumber(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.AsNumber addr)
protected static java.lang.String
getStringFromDistinguishedName(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.DistinguishedName addr)
protected static java.lang.String
getStringFromExplicitLocatorPath(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.ExplicitLocatorPath addr)
protected static java.lang.String
getStringFromInstanceId(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.InstanceId addr)
protected static java.lang.String
getStringFromIpv4(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv4 addr)
protected static java.lang.String
getStringFromIpv4Binary(LispAddressStringifier.Destination dst, Ipv4Binary addr)
protected static java.lang.String
getStringFromIpv4Prefix(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv4Prefix addr)
protected static java.lang.String
getStringFromIpv4PrefixBinary(LispAddressStringifier.Destination dst, Ipv4PrefixBinary addr)
protected static java.lang.String
getStringFromIpv6(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv6 addr)
protected static java.lang.String
getStringFromIpv6Binary(LispAddressStringifier.Destination dst, Ipv6Binary addr)
protected static java.lang.String
getStringFromIpv6Prefix(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv6Prefix addr)
protected static java.lang.String
getStringFromIpv6PrefixBinary(LispAddressStringifier.Destination dst, Ipv6PrefixBinary addr)
protected static java.lang.String
getStringFromKeyValueAddress(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.KeyValueAddress addr)
protected static java.lang.String
getStringFromMac(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Mac addr)
protected static java.lang.String
getStringFromNoAddress(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.NoAddress addr)
protected static java.lang.String
getStringFromServicePath(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.ServicePath addr)
protected static java.lang.String
getStringFromSourceDestKey(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.SourceDestKey addr)
static java.lang.String
getURIString(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddress lispAddress)
static java.lang.String
getURIString(XtrId xtrId)
static java.lang.String
getURLString(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddress lispAddress)
static java.lang.String
getURLString(XtrId xtrId)
-
-
-
Method Detail
-
getString
public static java.lang.String getString(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddress lispAddress)
-
getString
public static java.lang.String getString(java.util.Set<Eid> eids)
-
getString
public static java.lang.String getString(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.Address address)
-
getString
public static java.lang.String getString(XtrId xtrId)
-
getURIString
public static java.lang.String getURIString(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddress lispAddress)
-
getURIString
public static java.lang.String getURIString(XtrId xtrId)
-
getURLString
public static java.lang.String getURLString(org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.LispAddress lispAddress)
-
getURLString
public static java.lang.String getURLString(XtrId xtrId)
-
getStringFromNoAddress
protected static java.lang.String getStringFromNoAddress(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.NoAddress addr)
-
getStringFromIpv4
protected static java.lang.String getStringFromIpv4(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv4 addr)
-
getStringFromIpv4Binary
protected static java.lang.String getStringFromIpv4Binary(LispAddressStringifier.Destination dst, Ipv4Binary addr)
-
getStringFromIpv4Prefix
protected static java.lang.String getStringFromIpv4Prefix(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv4Prefix addr)
-
getStringFromIpv4PrefixBinary
protected static java.lang.String getStringFromIpv4PrefixBinary(LispAddressStringifier.Destination dst, Ipv4PrefixBinary addr)
-
getStringFromIpv6
protected static java.lang.String getStringFromIpv6(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv6 addr)
-
getStringFromIpv6Binary
protected static java.lang.String getStringFromIpv6Binary(LispAddressStringifier.Destination dst, Ipv6Binary addr)
-
getStringFromIpv6Prefix
protected static java.lang.String getStringFromIpv6Prefix(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Ipv6Prefix addr)
-
getStringFromIpv6PrefixBinary
protected static java.lang.String getStringFromIpv6PrefixBinary(LispAddressStringifier.Destination dst, Ipv6PrefixBinary addr)
-
getStringFromDistinguishedName
protected static java.lang.String getStringFromDistinguishedName(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.DistinguishedName addr)
-
getStringFromAsNumber
protected static java.lang.String getStringFromAsNumber(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.AsNumber addr)
-
getStringFromAfiList
protected static java.lang.String getStringFromAfiList(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.AfiList addr)
-
getStringFromInstanceId
protected static java.lang.String getStringFromInstanceId(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.InstanceId addr)
-
getStringFromApplicationData
protected static java.lang.String getStringFromApplicationData(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.ApplicationData addr)
-
getStringFromExplicitLocatorPath
protected static java.lang.String getStringFromExplicitLocatorPath(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.ExplicitLocatorPath addr)
-
getStringFromSourceDestKey
protected static java.lang.String getStringFromSourceDestKey(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.SourceDestKey addr)
-
getStringFromKeyValueAddress
protected static java.lang.String getStringFromKeyValueAddress(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.KeyValueAddress addr)
-
getStringFromMac
protected static java.lang.String getStringFromMac(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.Mac addr)
-
getStringFromServicePath
protected static java.lang.String getStringFromServicePath(LispAddressStringifier.Destination dst, org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.lisp.address.types.rev151105.lisp.address.address.ServicePath addr)
-
-