final class OFMatchSerializer
extends org.codehaus.jackson.map.JsonSerializer<org.openflow.protocol.interfaces.OFMatch>
Constructor and Description |
---|
OFMatchSerializer() |
Modifier and Type | Method and Description |
---|---|
(package private) static java.lang.String |
arrToIp(byte[] arr) |
(package private) static int |
getMaskLen(byte[] mask) |
(package private) static int |
getNetworkDestinationMaskLen(org.openflow.protocol.interfaces.OFMatch match)
Parse this match's wildcard fields and return the number of significant
bits in the IP destination field.
|
(package private) static int |
getNetworkSourceMaskLen(org.openflow.protocol.interfaces.OFMatch match)
Parse this match's wildcard fields and return the number of significant
bits in the IP destination field.
|
(package private) static java.lang.String |
intToIp(int i)
Converts an IP in a 32 bit integer to a dotted-decimal string
|
void |
serialize(org.openflow.protocol.interfaces.OFMatch match,
org.codehaus.jackson.JsonGenerator jgen,
org.codehaus.jackson.map.SerializerProvider provider)
Serialize function that converts OFMatch to JSON format.
|
static java.lang.String intToIp(int i)
i
- The IP address in a 32 bit integerstatic java.lang.String arrToIp(byte[] arr)
static int getNetworkDestinationMaskLen(org.openflow.protocol.interfaces.OFMatch match)
static int getNetworkSourceMaskLen(org.openflow.protocol.interfaces.OFMatch match)
static int getMaskLen(byte[] mask)
public void serialize(org.openflow.protocol.interfaces.OFMatch match, org.codehaus.jackson.JsonGenerator jgen, org.codehaus.jackson.map.SerializerProvider provider) throws java.io.IOException, org.codehaus.jackson.JsonProcessingException
serialize
in class org.codehaus.jackson.map.JsonSerializer<org.openflow.protocol.interfaces.OFMatch>
match
- OFMatch objectjgen
- JsonGenerator objectprovider
- SerializerProvider object. not used.java.io.IOException
org.codehaus.jackson.JsonProcessingException