Package org.jgrapes.webconsole.base
Class JsonRpc.Serializer
- All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
,com.fasterxml.jackson.databind.jsonschema.SchemaAware
,Serializable
- Enclosing class:
JsonRpc
public static class JsonRpc.Serializer
extends com.fasterxml.jackson.databind.ser.std.StdSerializer<JsonRpc>
A Serializer for a
JsonRpc
.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer
com.fasterxml.jackson.databind.JsonSerializer.None
-
Field Summary
Fields inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_handledType
-
Constructor Summary
ConstructorDescriptionInstantiates a new serializer.Serializer
(Class<JsonRpc> type) Instantiates a new serializer. -
Method Summary
Methods inherited from class com.fasterxml.jackson.databind.ser.std.StdSerializer
_neitherNull, _nonEmpty, acceptJsonFormatVisitor, createSchemaNode, createSchemaNode, findAnnotatedContentSerializer, findContextualConvertingSerializer, findConvertingContentSerializer, findFormatFeature, findFormatOverrides, findIncludeOverrides, findPropertyFilter, getSchema, getSchema, handledType, isDefaultSerializer, visitArrayFormat, visitArrayFormat, visitFloatFormat, visitIntFormat, visitIntFormat, visitStringFormat, visitStringFormat, wrapAndThrow, wrapAndThrow
Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer
getDelegatee, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId, withIgnoredProperties
-
Constructor Details
-
Serializer
public Serializer()Instantiates a new serializer. -
Serializer
Instantiates a new serializer.- Parameters:
type
- the type
-
-
Method Details
-
serialize
public void serialize(JsonRpc obj, com.fasterxml.jackson.core.JsonGenerator generator, com.fasterxml.jackson.databind.SerializerProvider ctx) throws IOException Serialize.- Specified by:
serialize
in classcom.fasterxml.jackson.databind.ser.std.StdSerializer<JsonRpc>
- Parameters:
obj
- the objgenerator
- the generatorctx
- the ctx- Throws:
IOException
- Signals that an I/O exception has occurred.
-