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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    serialize(com.lucidworks.apollo.common.error.RESTError restError, com.fasterxml.jackson.core.JsonGenerator jgen, com.fasterxml.jackson.databind.SerializerProvider provider)
     
    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)
     

    Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

    acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, unwrappingSerializer, usesObjectId, withFilterId

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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:
      serializeWithType in class com.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:
      serialize in class com.fasterxml.jackson.databind.JsonSerializer<com.lucidworks.apollo.common.error.RESTError>
      Throws:
      IOException
      com.fasterxml.jackson.core.JsonProcessingException