Class HistoryEvent.TruncatingRESTErrorSerializer
java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<com.lucidworks.apollo.common.error.RESTError>
com.lucidworks.apollo.common.models.HistoryEvent.TruncatingRESTErrorSerializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
- Enclosing class:
- HistoryEvent
public static class HistoryEvent.TruncatingRESTErrorSerializer
extends com.fasterxml.jackson.databind.JsonSerializer<com.lucidworks.apollo.common.error.RESTError>
Overrides the default RESTError serialization logic to limit the stack trace verbosity;
has to be public static to be instantiated by JSON framework.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidserialize(com.lucidworks.apollo.common.error.RESTError restError, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) voidserializeWithType(com.lucidworks.apollo.common.error.RESTError restError, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, unwrappingSerializer, usesObjectId, withFilterId
-
Constructor Details
-
TruncatingRESTErrorSerializer
public TruncatingRESTErrorSerializer()
-
-
Method Details
-
serializeWithType
public void serializeWithType(com.lucidworks.apollo.common.error.RESTError restError, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider, com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSer) throws IOException - Overrides:
serializeWithTypein classcom.fasterxml.jackson.databind.JsonSerializer<com.lucidworks.apollo.common.error.RESTError>- Throws:
IOException
-
serialize
public void serialize(com.lucidworks.apollo.common.error.RESTError restError, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider) throws IOException, com.fasterxml.jackson.core.JsonProcessingException - Specified by:
serializein classcom.fasterxml.jackson.databind.JsonSerializer<com.lucidworks.apollo.common.error.RESTError>- Throws:
IOExceptioncom.fasterxml.jackson.core.JsonProcessingException
-