Class StatusSerialiser
- java.lang.Object
-
- com.fasterxml.jackson.databind.JsonSerializer<Status>
-
- uk.gov.gchq.gaffer.core.exception.serialisation.StatusSerialiser
-
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
public class StatusSerialiser extends com.fasterxml.jackson.databind.JsonSerializer<Status>
Custom serialiser to format the HTTP status string when displaying error messages to users.
-
-
Constructor Summary
Constructors Constructor Description StatusSerialiser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serialize(Status statusType, com.fasterxml.jackson.core.JsonGenerator generator, com.fasterxml.jackson.databind.SerializerProvider provider)
-
-
-
Method Detail
-
serialize
public void serialize(Status statusType, com.fasterxml.jackson.core.JsonGenerator generator, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException
- Specified by:
serialize
in classcom.fasterxml.jackson.databind.JsonSerializer<Status>
- Throws:
IOException
-
-