blob: bd5970dbda8d08f80f3dccd8b825d2e22af8a811 [file] [log] [blame]
package net.floodlightcontroller.util.serializers;
import java.io.IOException;
import org.codehaus.jackson.JsonGenerator;
import org.codehaus.jackson.JsonProcessingException;
import org.codehaus.jackson.map.JsonSerializer;
import org.codehaus.jackson.map.SerializerProvider;
import net.floodlightcontroller.util.FlowEntryActions;
/**
* Serialize a FlowEntryActions as a string.
*/
public class FlowEntryActionsSerializer extends JsonSerializer<FlowEntryActions> {
@Override
public void serialize(FlowEntryActions flowEntryActions,
JsonGenerator jGen,
SerializerProvider serializer)
throws IOException, JsonProcessingException {
jGen.writeObject(flowEntryActions);
}
}