Class TrafficMatchCodec
- java.lang.Object
-
- org.onosproject.codec.JsonCodec<org.onosproject.segmentrouting.policy.api.TrafficMatch>
-
- org.onosproject.segmentrouting.policy.impl.TrafficMatchCodec
-
public final class TrafficMatchCodec extends org.onosproject.codec.JsonCodec<org.onosproject.segmentrouting.policy.api.TrafficMatch>Codec of TrafficMatch class.
-
-
Field Summary
Fields Modifier and Type Field Description static StringMISSING_MEMBER_MESSAGEstatic StringPOLICY_IDstatic StringTRAFFIC_MATCH_IDstatic StringTRAFFIC_MATCH_PRIORITYstatic StringTRAFFIC_SELECTOR
-
Constructor Summary
Constructors Constructor Description TrafficMatchCodec()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.onosproject.segmentrouting.policy.api.TrafficMatchdecode(com.fasterxml.jackson.databind.node.ObjectNode json, org.onosproject.codec.CodecContext context)com.fasterxml.jackson.databind.node.ObjectNodeencode(org.onosproject.segmentrouting.policy.api.TrafficMatch trafficMatch, org.onosproject.codec.CodecContext context)
-
-
-
Field Detail
-
TRAFFIC_MATCH_ID
public static final String TRAFFIC_MATCH_ID
- See Also:
- Constant Field Values
-
TRAFFIC_SELECTOR
public static final String TRAFFIC_SELECTOR
- See Also:
- Constant Field Values
-
POLICY_ID
public static final String POLICY_ID
- See Also:
- Constant Field Values
-
TRAFFIC_MATCH_PRIORITY
public static final String TRAFFIC_MATCH_PRIORITY
- See Also:
- Constant Field Values
-
MISSING_MEMBER_MESSAGE
public static final String MISSING_MEMBER_MESSAGE
- See Also:
- Constant Field Values
-
-
Method Detail
-
encode
public com.fasterxml.jackson.databind.node.ObjectNode encode(org.onosproject.segmentrouting.policy.api.TrafficMatch trafficMatch, org.onosproject.codec.CodecContext context)- Overrides:
encodein classorg.onosproject.codec.JsonCodec<org.onosproject.segmentrouting.policy.api.TrafficMatch>
-
decode
public org.onosproject.segmentrouting.policy.api.TrafficMatch decode(com.fasterxml.jackson.databind.node.ObjectNode json, org.onosproject.codec.CodecContext context)- Overrides:
decodein classorg.onosproject.codec.JsonCodec<org.onosproject.segmentrouting.policy.api.TrafficMatch>
-
-