Uses of Class
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.JsonSerializer
Packages that use JsonSerializer
Package
Description
Basic data binding (mapping) functionality that
allows for reading JSON content into Java Objects (POJOs)
and JSON Trees (
JsonNode), as well as
writing Java Objects and trees as JSON.Package that contains most of configuration-related classes;
exception being couple of most-commonly used configuration
things (like Feature enumerations) that are at the
main level (
edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind).Contains extended support for "external" packages: things that
may or may not be present in runtime environment, but that are
commonly enough used so that explicit support can be added.
Package that contains classes and interfaces to help implement
custom extension
Modules
(which are registered using
ObjectMapper.registerModule(edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.Module).Contains implementation classes of serialization part of
data binding.
Contains implementation classes of serialization part of
data binding.
-
Uses of JsonSerializer in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind
Subclasses of JsonSerializer in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databindModifier and TypeClassDescriptionstatic classThis marker class is only to be used with annotations, to indicate that no serializer is configured.Fields in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind declared as JsonSerializerModifier and TypeFieldDescriptionprotected JsonSerializer<Object>SerializerProvider._keySerializerSerializer used to output non-null keys of Maps (which will get output as JSON Objects), if not null; if null, us the standard default key serializer.protected JsonSerializer<Object>SerializerProvider._nullKeySerializerSerializer used to (try to) output a null key, due to an entry ofMaphaving null key.protected JsonSerializer<Object>SerializerProvider._nullValueSerializerSerializer used to output a null value.protected final JsonSerializer<Object>SequenceWriter._rootSerializerprotected JsonSerializer<Object>SerializerProvider._unknownTypeSerializerSerializer that gets called for values of types for which no serializers can be constructed.static final JsonSerializer<Object>SerializerProvider.DEFAULT_NULL_KEY_SERIALIZERprotected static final JsonSerializer<Object>SerializerProvider.DEFAULT_UNKNOWN_SERIALIZERPlaceholder serializer used whenjava.lang.Objecttyped property is marked to be serialized.Methods in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind that return JsonSerializerModifier and TypeMethodDescriptionprotected JsonSerializer<Object>SerializerProvider._createAndCacheUntypedSerializer(JavaType type) protected JsonSerializer<Object>SerializerProvider._createAndCacheUntypedSerializer(Class<?> rawType) Method that will try to construct a value serializer; and if one is successfully created, cache it for reuse.protected JsonSerializer<Object>SerializerProvider._createUntypedSerializer(JavaType type) protected JsonSerializer<Object>SerializerProvider._findExplicitUntypedSerializer(Class<?> runtimeType) Method that will try to find a serializer, either from cache or by constructing one; but will not return an "unknown" serializer if this cannot be done but rather returns null.protected JsonSerializer<Object>SerializerProvider._handleContextualResolvable(JsonSerializer<?> ser, BeanProperty property) Helper method called to resolve and contextualize given serializer, if and as necessary.protected JsonSerializer<Object>SerializerProvider._handleResolvable(JsonSerializer<?> ser) SerializerProvider.findContentValueSerializer(JavaType valueType, BeanProperty property) Alternative toSerializerProvider.findPrimaryPropertySerializer(JavaType, BeanProperty)called not for primary value, but "content" of such primary serializer: element of an array orCollection, value ofMapentry and so on.SerializerProvider.findContentValueSerializer(Class<?> valueType, BeanProperty property) SerializerProvider.findKeySerializer(JavaType keyType, BeanProperty property) Method called to get the serializer to use for serializing non-null Map keys.SerializerProvider.findKeySerializer(Class<?> rawKeyType, BeanProperty property) SerializerProvider.findNullKeySerializer(JavaType serializationType, BeanProperty property) Method called to find a serializer to use for null values for given declared type.SerializerProvider.findNullValueSerializer(BeanProperty property) Method called to get the serializer to use for serializing null values for specified property.SerializerProvider.findPrimaryPropertySerializer(JavaType valueType, BeanProperty property) Similar toSerializerProvider.findValueSerializer(JavaType, BeanProperty), but used when finding "primary" property value serializer (one directly handling value of the property).SerializerProvider.findPrimaryPropertySerializer(Class<?> valueType, BeanProperty property) SerializerProvider.findTypedValueSerializer(JavaType valueType, boolean cache, BeanProperty property) Method called to locate regular serializer, matching type serializer, and if both found, wrap them in a serializer that calls both in correct sequence.SerializerProvider.findTypedValueSerializer(Class<?> valueType, boolean cache, BeanProperty property) Method called to locate regular serializer, matching type serializer, and if both found, wrap them in a serializer that calls both in correct sequence.SerializerProvider.findValueSerializer(JavaType valueType) Method variant used when we do NOT want contextualization to happen; it will need to be handled at a later point, but caller wants to be able to do that as needed; sometimes to avoid infinite loopsSerializerProvider.findValueSerializer(JavaType valueType, BeanProperty property) Similar toSerializerProvider.findValueSerializer(Class,BeanProperty), but takes full generics-aware type instead of raw class.SerializerProvider.findValueSerializer(Class<?> valueType) Method variant used when we do NOT want contextualization to happen; it will need to be handled at a later point, but caller wants to be able to do that as needed; sometimes to avoid infinite loopsSerializerProvider.findValueSerializer(Class<?> valueType, BeanProperty property) Method called to get hold of a serializer for a value of given type; or if no such serializer can be found, a default handler (which may do a best-effort generic serialization or just simply throw an exception when invoked).SerializerProvider.getDefaultNullKeySerializer()SerializerProvider.getDefaultNullValueSerializer()JsonSerializer.getDelegatee()Accessor that can be used to determine if this serializer uses another serializer for actual serialization, by delegating calls.SerializerProvider.getUnknownTypeSerializer(Class<?> unknownType) Method called to get the serializer to use if provider cannot determine an actual type-specific serializer to use; typically when none ofSerializerFactoryinstances are able to construct a serializer.final JsonSerializer<Object>ObjectWriter.Prefetch.getValueSerializer()SerializerProvider.handlePrimaryContextualization(JsonSerializer<?> ser, BeanProperty property) Method called for primary property serializers (ones directly created to serialize values of a POJO property), to handle details of resolvingContextualSerializerwith given property context.SerializerProvider.handleSecondaryContextualization(JsonSerializer<?> ser, BeanProperty property) Method called for secondary property serializers (ones NOT directly created to serialize values of a POJO property but instead created as a dependant serializer -- such as value serializers for structured types, or serializers for root values) to handle details of resolvingContextualDeserializerwith given property context.JsonSerializer.replaceDelegatee(JsonSerializer<?> delegatee) Method that can be called to try to replace serializer this serializer delegates calls to.abstract JsonSerializer<Object>SerializerProvider.serializerInstance(Annotated annotated, Object serDef) Method that can be called to construct and configure serializer instance, either given aClassto instantiate (with default constructor), or an uninitialized serializer instance.JsonSerializer.unwrappingSerializer(NameTransformer unwrapper) Method that will return serializer instance that produces "unwrapped" serialization, if applicable for type being serialized (which is the case for some serializers that produce JSON Objects as output).JsonSerializer.withFilterId(Object filterId) Mutant factory method that is called if contextual configuration indicates that a specific filter (as specified byfilterId) is to be used for serialization.Methods in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind with parameters of type JsonSerializerModifier and TypeMethodDescriptionprotected JsonSerializer<Object>SerializerProvider._handleContextualResolvable(JsonSerializer<?> ser, BeanProperty property) Helper method called to resolve and contextualize given serializer, if and as necessary.protected JsonSerializer<Object>SerializerProvider._handleResolvable(JsonSerializer<?> ser) SerializerProvider.handlePrimaryContextualization(JsonSerializer<?> ser, BeanProperty property) Method called for primary property serializers (ones directly created to serialize values of a POJO property), to handle details of resolvingContextualSerializerwith given property context.SerializerProvider.handleSecondaryContextualization(JsonSerializer<?> ser, BeanProperty property) Method called for secondary property serializers (ones NOT directly created to serialize values of a POJO property but instead created as a dependant serializer -- such as value serializers for structured types, or serializers for root values) to handle details of resolvingContextualDeserializerwith given property context.booleanSerializerProvider.isUnknownTypeSerializer(JsonSerializer<?> ser) Helper method called to see if given serializer is considered to be something returned bySerializerProvider.getUnknownTypeSerializer(java.lang.Class<?>), that is, something for which no regular serializer was found or constructed.JsonSerializer.replaceDelegatee(JsonSerializer<?> delegatee) Method that can be called to try to replace serializer this serializer delegates calls to.voidSerializerProvider.setDefaultKeySerializer(JsonSerializer<Object> ks) Method that can be used to specify serializer to use for serializing all non-null JSON property names, unless more specific key serializer is found (i.e.voidSerializerProvider.setNullKeySerializer(JsonSerializer<Object> nks) Method that can be used to specify serializer that will be used to write JSON property names matching null keys for Java Maps (which will otherwise throw an exception if try write such property name)voidSerializerProvider.setNullValueSerializer(JsonSerializer<Object> nvs) Method that can be used to specify serializer that will be used to write JSON values matching Java null values instead of default one (which simply writes JSON null). -
Uses of JsonSerializer in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.cfg
Methods in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.cfg that return JsonSerializerModifier and TypeMethodDescriptionabstract JsonSerializer<?>HandlerInstantiator.serializerInstance(SerializationConfig config, Annotated annotated, Class<?> serClass) Method called to get an instance of serializer of specified type. -
Uses of JsonSerializer in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ext
Subclasses of JsonSerializer in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.extModifier and TypeClassDescriptionstatic classclassclassclassSerializer implementation forBlobto write as binary (for JSON and other formats Base64-encoded String, for binary formats as true binary).Methods in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ext that return JsonSerializerModifier and TypeMethodDescriptionCoreXMLSerializers.XMLGregorianCalendarSerializer.createContextual(SerializerProvider prov, BeanProperty property) CoreXMLSerializers.findSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc) OptionalHandlerFactory.findSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc) CoreXMLSerializers.XMLGregorianCalendarSerializer.getDelegatee()abstract JsonSerializer<?>Java7Handlers.getSerializerForJavaNioFilePath(Class<?> rawType) Java7HandlersImpl.getSerializerForJavaNioFilePath(Class<?> rawType) Constructors in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ext with parameters of type JsonSerializer -
Uses of JsonSerializer in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.module
Fields in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.module with type parameters of type JsonSerializerModifier and TypeFieldDescriptionprotected HashMap<ClassKey,JsonSerializer<?>> SimpleSerializers._classMappingsClass-based mappings that are used both for exact and sub-class matches.protected HashMap<ClassKey,JsonSerializer<?>> SimpleSerializers._interfaceMappingsInterface-based matches.Methods in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.module that return JsonSerializerModifier and TypeMethodDescriptionprotected JsonSerializer<?>SimpleSerializers._findInterfaceMapping(Class<?> cls, ClassKey key) SimpleSerializers.findArraySerializer(SerializationConfig config, ArrayType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) SimpleSerializers.findCollectionLikeSerializer(SerializationConfig config, CollectionLikeType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) SimpleSerializers.findCollectionSerializer(SerializationConfig config, CollectionType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) SimpleSerializers.findMapLikeSerializer(SerializationConfig config, MapLikeType type, BeanDescription beanDesc, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) SimpleSerializers.findMapSerializer(SerializationConfig config, MapType type, BeanDescription beanDesc, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) SimpleSerializers.findSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc) Methods in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.module with parameters of type JsonSerializerModifier and TypeMethodDescriptionprotected voidSimpleSerializers._addSerializer(Class<?> cls, JsonSerializer<?> ser) <T> SimpleModuleSimpleModule.addKeySerializer(Class<? extends T> type, JsonSerializer<T> ser) SimpleModule.addSerializer(JsonSerializer<?> ser) Method for adding serializer to handle type that the serializer claims to handle (seehandledType()).<T> SimpleModuleSimpleModule.addSerializer(Class<? extends T> type, JsonSerializer<T> ser) Method for adding serializer to handle values of specific type.voidSimpleSerializers.addSerializer(JsonSerializer<?> ser) Method for adding given serializer for type thathandledType()specifies (which MUST return a non-null class; and can NOT beObject, as a sanity check).<T> voidSimpleSerializers.addSerializer(Class<? extends T> type, JsonSerializer<T> ser) SimpleSerializers.findArraySerializer(SerializationConfig config, ArrayType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) SimpleSerializers.findCollectionLikeSerializer(SerializationConfig config, CollectionLikeType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) SimpleSerializers.findCollectionSerializer(SerializationConfig config, CollectionType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) SimpleSerializers.findMapLikeSerializer(SerializationConfig config, MapLikeType type, BeanDescription beanDesc, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) SimpleSerializers.findMapSerializer(SerializationConfig config, MapType type, BeanDescription beanDesc, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Method parameters in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.module with type arguments of type JsonSerializerModifier and TypeMethodDescriptionvoidSimpleSerializers.addSerializers(List<JsonSerializer<?>> sers) Constructor parameters in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.module with type arguments of type JsonSerializerModifierConstructorDescriptionSimpleModule(String name, Version version, List<JsonSerializer<?>> serializers) SimpleModule(String name, Version version, Map<Class<?>, JsonDeserializer<?>> deserializers, List<JsonSerializer<?>> serializers) SimpleSerializers(List<JsonSerializer<?>> sers) -
Uses of JsonSerializer in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser
Subclasses of JsonSerializer in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.serModifier and TypeClassDescriptionclassSerializer class that can serialize Java objects that map to JSON Object output.classIntermediate base class for serializers used for serializing types that contain element(s) of other types, such as arrays,Collections (Lists,Setsetc) andMaps and iterable things (Iterators).Fields in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser declared as JsonSerializerModifier and TypeFieldDescriptionprotected JsonSerializer<Object>BeanPropertyWriter._nullSerializerSerializer used for writing out null values, if any: if null, null values are to be suppressed.protected JsonSerializer<Object>AnyGetterWriter._serializerprotected JsonSerializer<Object>BeanPropertyWriter._serializerSerializer to use for writing out the value: null if it cannot be known statically; non-null if it can.Fields in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser with type parameters of type JsonSerializerModifier and TypeFieldDescriptionprotected static final HashMap<String,JsonSerializer<?>> BasicSerializerFactory._concreteSince these are all JDK classes, we shouldn't have to worry about ClassLoader used to load them.protected static final HashMap<String,Class<? extends JsonSerializer<?>>> BasicSerializerFactory._concreteLazyActually it may not make much sense to eagerly instantiate all kinds of serializers: so this Map actually contains class references, not instancesMethods in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser that return JsonSerializerModifier and TypeMethodDescriptionprotected JsonSerializer<?>BeanSerializerFactory._createSerializer2(SerializerProvider prov, JavaType type, BeanDescription beanDesc, boolean staticTyping) protected JsonSerializer<Object>BeanPropertyWriter._findAndAddDynamic(PropertySerializerMap map, Class<?> type, SerializerProvider provider) protected JsonSerializer<Object>BasicSerializerFactory._findContentSerializer(SerializerProvider prov, Annotated a) Helper method called to try to find whether there is an annotation in the class that indicates content ("value") serializer to use.protected JsonSerializer<Object>BasicSerializerFactory._findKeySerializer(SerializerProvider prov, Annotated a) Helper method called to try to find whether there is an annotation in the class that indicates key serializer to use.protected JsonSerializer<?>BeanSerializerFactory._findUnsupportedTypeSerializer(SerializerProvider ctxt, JavaType type, BeanDescription beanDesc) BeanSerializerBuilder.build()Method called to createBeanSerializerinstance with all accumulated information.protected JsonSerializer<?>BasicSerializerFactory.buildArraySerializer(SerializerProvider prov, ArrayType type, BeanDescription beanDesc, boolean staticTyping, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forObject[](and subtypes, except for String).protected JsonSerializer<?>BasicSerializerFactory.buildAtomicReferenceSerializer(SerializerProvider prov, ReferenceType refType, BeanDescription beanDesc, boolean staticTyping, TypeSerializer contentTypeSerializer, JsonSerializer<Object> contentSerializer) protected JsonSerializer<?>BasicSerializerFactory.buildCollectionSerializer(SerializerProvider prov, CollectionType type, BeanDescription beanDesc, boolean staticTyping, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forListtypes that support efficient by-index accessprotected JsonSerializer<?>BasicSerializerFactory.buildContainerSerializer(SerializerProvider prov, JavaType type, BeanDescription beanDesc, boolean staticTyping) protected JsonSerializer<?>BasicSerializerFactory.buildEnumSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc) BasicSerializerFactory.buildEnumSetSerializer(JavaType enumType) protected JsonSerializer<?>BasicSerializerFactory.buildIterableSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc, boolean staticTyping, JavaType valueType) protected JsonSerializer<?>BasicSerializerFactory.buildIteratorSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc, boolean staticTyping, JavaType valueType) protected JsonSerializer<?>BasicSerializerFactory.buildMapEntrySerializer(SerializerProvider prov, JavaType type, BeanDescription beanDesc, boolean staticTyping, JavaType keyType, JavaType valueType) protected JsonSerializer<?>BasicSerializerFactory.buildMapSerializer(SerializerProvider prov, MapType type, BeanDescription beanDesc, boolean staticTyping, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forMaptypes.protected JsonSerializer<Object>BeanSerializerFactory.constructBeanOrAddOnSerializer(SerializerProvider prov, JavaType type, BeanDescription beanDesc, boolean staticTyping) Method called to construct serializer for serializing specified bean type if (but only if, as of 2.10), at least one property is found.protected JsonSerializer<Object>BeanSerializerFactory.constructBeanSerializer(SerializerProvider prov, BeanDescription beanDesc) Deprecated.ContextualSerializer.createContextual(SerializerProvider prov, BeanProperty property) Method called to see if a different (or differently configured) serializer is needed to serialize values of specified property.BasicSerializerFactory.createKeySerializer(SerializationConfig config, JavaType keyType, JsonSerializer<Object> defaultImpl) Deprecated.BasicSerializerFactory.createKeySerializer(SerializerProvider ctxt, JavaType keyType, JsonSerializer<Object> defaultImpl) abstract JsonSerializer<Object>SerializerFactory.createKeySerializer(SerializationConfig config, JavaType type, JsonSerializer<Object> defaultImpl) Deprecated.SerializerFactory.createKeySerializer(SerializerProvider prov, JavaType type, JsonSerializer<Object> defaultImpl) Method called to create serializer to use for serializing JSON property names (which must be output asJsonToken.FIELD_NAME) for Map that has specified declared key type, and is for specified property (or, if property is null, as root value)abstract JsonSerializer<Object>BasicSerializerFactory.createSerializer(SerializerProvider prov, JavaType type) BeanSerializerFactory.createSerializer(SerializerProvider prov, JavaType origType) Main serializer constructor method.abstract JsonSerializer<Object>SerializerFactory.createSerializer(SerializerProvider prov, JavaType baseType) Method called to create (or, for immutable serializers, reuse) a serializer for given type.Serializers.Base.findArraySerializer(SerializationConfig config, ArrayType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.findArraySerializer(SerializationConfig config, ArrayType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specified array type.BeanSerializerFactory.findBeanOrAddOnSerializer(SerializerProvider prov, JavaType type, BeanDescription beanDesc, boolean staticTyping) Method that will try to construct aBeanSerializerfor given class if at least one property is found, OR, if not, one of add-on types.BeanSerializerFactory.findBeanSerializer(SerializerProvider prov, JavaType type, BeanDescription beanDesc) Deprecated.Serializers.Base.findCollectionLikeSerializer(SerializationConfig config, CollectionLikeType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.findCollectionLikeSerializer(SerializationConfig config, CollectionLikeType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specified "Collection-like" type (type that acts likeCollection, but does not implement it).Serializers.Base.findCollectionSerializer(SerializationConfig config, CollectionType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.findCollectionSerializer(SerializationConfig config, CollectionType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specifiedCollectiontype.protected JsonSerializer<?>BasicSerializerFactory.findConvertingSerializer(SerializerProvider prov, Annotated a, JsonSerializer<?> ser) Helper method that will check whether given annotated entity (usually class, but may also be a property accessor) indicates that aConverteris to be used; and if so, to construct and return suitable serializer for it.Serializers.Base.findMapLikeSerializer(SerializationConfig config, MapLikeType type, BeanDescription beanDesc, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.findMapLikeSerializer(SerializationConfig config, MapLikeType type, BeanDescription beanDesc, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specified "Map-like" type (type that acts likeMap, but does not implement it).Serializers.Base.findMapSerializer(SerializationConfig config, MapType type, BeanDescription beanDesc, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.findMapSerializer(SerializationConfig config, MapType type, BeanDescription beanDesc, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specifiedMaptype.protected JsonSerializer<?>BasicSerializerFactory.findOptionalStdSerializer(SerializerProvider prov, JavaType type, BeanDescription beanDesc, boolean staticTyping) Overridable method called after checking all other types.BasicSerializerFactory.findReferenceSerializer(SerializerProvider prov, ReferenceType refType, BeanDescription beanDesc, boolean staticTyping) Serializers.Base.findReferenceSerializer(SerializationConfig config, ReferenceType type, BeanDescription beanDesc, TypeSerializer contentTypeSerializer, JsonSerializer<Object> contentValueSerializer) Serializers.findReferenceSerializer(SerializationConfig config, ReferenceType type, BeanDescription beanDesc, TypeSerializer contentTypeSerializer, JsonSerializer<Object> contentValueSerializer) Method called by serialization framework first time a serializer is needed for givenReferenceTypeSerializers.Base.findSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc) Serializers.findSerializer(SerializationConfig config, JavaType type, BeanDescription beanDesc) Method called by serialization framework first time a serializer is needed for specified type, which is not of a container or reference type (for which other methods are called).protected final JsonSerializer<?>BasicSerializerFactory.findSerializerByAddonType(SerializationConfig config, JavaType javaType, BeanDescription beanDesc, boolean staticTyping) Reflection-based serialized find method, which checks if given class implements one of recognized "add-on" interfaces.protected final JsonSerializer<?>BasicSerializerFactory.findSerializerByAnnotations(SerializerProvider prov, JavaType type, BeanDescription beanDesc) Method called to see if one of primary per-class annotations (or related, like implementing ofJsonSerializable) determines the serializer to use.protected final JsonSerializer<?>BasicSerializerFactory.findSerializerByLookup(JavaType type, SerializationConfig config, BeanDescription beanDesc, boolean staticTyping) Method that will use fast lookup (and identity comparison) methods to see if we know serializer to use for given type.protected final JsonSerializer<?>BasicSerializerFactory.findSerializerByPrimaryType(SerializerProvider prov, JavaType type, BeanDescription beanDesc, boolean staticTyping) Method for checking if we can determine serializer to use based on set of known primary types, checking for set of known base types (exact matches having been compared against withfindSerializerByLookup).protected JsonSerializer<Object>BasicSerializerFactory.findSerializerFromAnnotation(SerializerProvider prov, Annotated a) Helper method called to check if a class or method has an annotation (@link edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.annotation.JsonSerialize#using) that tells the class to use for serialization.abstract JsonSerializer<?>ContainerSerializer.getContentSerializer()Accessor for serializer used for serializing contents (List and array elements, Map values etc) of the container for which this serializer is used, if it is known statically.BeanPropertyWriter.getSerializer()BeanSerializerModifier.modifyArraySerializer(SerializationConfig config, ArrayType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) Method called byDeserializerFactoryafter it has constructed the standard serializer for givenArrayTypeto make it possible to either replace or augment this serializer with additional functionality.BeanSerializerModifier.modifyCollectionLikeSerializer(SerializationConfig config, CollectionLikeType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) BeanSerializerModifier.modifyCollectionSerializer(SerializationConfig config, CollectionType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) BeanSerializerModifier.modifyEnumSerializer(SerializationConfig config, JavaType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) BeanSerializerModifier.modifyKeySerializer(SerializationConfig config, JavaType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) Method called byDeserializerFactoryafter it has constructed the default key serializer to use for serializingMapkeys of given type.BeanSerializerModifier.modifyMapLikeSerializer(SerializationConfig config, MapLikeType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) BeanSerializerModifier.modifyMapSerializer(SerializationConfig config, MapType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) BeanSerializerModifier.modifySerializer(SerializationConfig config, BeanDescription beanDesc, JsonSerializer<?> serializer) Method called byBeanSerializerFactoryafter constructing default bean serializer instance with properties collected and ordered earlier.DefaultSerializerProvider.serializerInstance(Annotated annotated, Object serDef) SerializerCache.typedValueSerializer(JavaType type) SerializerCache.typedValueSerializer(Class<?> cls) SerializerCache.untypedValueSerializer(JavaType type) SerializerCache.untypedValueSerializer(Class<?> type) Method that checks if the shared (and hence, synchronized) lookup Map might have untyped serializer for given type.BeanSerializer.unwrappingSerializer(NameTransformer unwrapper) Methods in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser with parameters of type JsonSerializerModifier and TypeMethodDescriptionprotected BeanPropertyWriterPropertyBuilder._constructPropertyWriter(BeanPropertyDefinition propDef, AnnotatedMember member, Annotations contextAnnotations, JavaType declaredType, JsonSerializer<?> ser, TypeSerializer typeSer, JavaType serType, boolean suppressNulls, Object suppressableValue, Class<?>[] includeInViews) Overridable factory method for actual construction ofBeanPropertyWriter; often needed if subclassingPropertyBuilder.buildWriter(edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.SerializerProvider, edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.introspect.BeanPropertyDefinition, edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.JavaType, edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.JsonSerializer<?>, edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.jsontype.TypeSerializer, edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.jsontype.TypeSerializer, edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.introspect.AnnotatedMember, boolean)method.protected booleanBeanPropertyWriter._handleSelfReference(Object bean, JsonGenerator gen, SerializerProvider prov, JsonSerializer<?> ser) Method called to handle a direct self-reference through this property.voidSerializerCache.addAndResolveNonTypedSerializer(JavaType type, JsonSerializer<Object> ser, SerializerProvider provider) voidSerializerCache.addAndResolveNonTypedSerializer(Class<?> rawType, JavaType fullType, JsonSerializer<Object> ser, SerializerProvider provider) Another alternative that will cover both access via raw type and matching fully resolved type, in one fell swoop.voidSerializerCache.addAndResolveNonTypedSerializer(Class<?> type, JsonSerializer<Object> ser, SerializerProvider provider) voidSerializerCache.addTypedSerializer(JavaType type, JsonSerializer<Object> ser) Method called if none of lookups succeeded, and caller had to construct a serializer.voidSerializerCache.addTypedSerializer(Class<?> cls, JsonSerializer<Object> ser) voidBeanPropertyWriter.assignNullSerializer(JsonSerializer<Object> nullSer) Method called to assign null value serializer for propertyvoidBeanPropertyWriter.assignSerializer(JsonSerializer<Object> ser) Method called to assign value serializer for propertyprotected JsonSerializer<?>BasicSerializerFactory.buildArraySerializer(SerializerProvider prov, ArrayType type, BeanDescription beanDesc, boolean staticTyping, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forObject[](and subtypes, except for String).protected JsonSerializer<?>BasicSerializerFactory.buildAtomicReferenceSerializer(SerializerProvider prov, ReferenceType refType, BeanDescription beanDesc, boolean staticTyping, TypeSerializer contentTypeSerializer, JsonSerializer<Object> contentSerializer) BasicSerializerFactory.buildCollectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> valueSerializer) protected JsonSerializer<?>BasicSerializerFactory.buildCollectionSerializer(SerializerProvider prov, CollectionType type, BeanDescription beanDesc, boolean staticTyping, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forListtypes that support efficient by-index accessBasicSerializerFactory.buildIndexedListSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> valueSerializer) protected JsonSerializer<?>BasicSerializerFactory.buildMapSerializer(SerializerProvider prov, MapType type, BeanDescription beanDesc, boolean staticTyping, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Helper method that handles configuration details when constructing serializers forMaptypes.protected BeanPropertyWriterPropertyBuilder.buildWriter(SerializerProvider prov, BeanPropertyDefinition propDef, JavaType declaredType, JsonSerializer<?> ser, TypeSerializer typeSer, TypeSerializer contentTypeSer, AnnotatedMember am, boolean defaultUseStaticTyping) BasicSerializerFactory.createKeySerializer(SerializationConfig config, JavaType keyType, JsonSerializer<Object> defaultImpl) Deprecated.BasicSerializerFactory.createKeySerializer(SerializerProvider ctxt, JavaType keyType, JsonSerializer<Object> defaultImpl) abstract JsonSerializer<Object>SerializerFactory.createKeySerializer(SerializationConfig config, JavaType type, JsonSerializer<Object> defaultImpl) Deprecated.SerializerFactory.createKeySerializer(SerializerProvider prov, JavaType type, JsonSerializer<Object> defaultImpl) Method called to create serializer to use for serializing JSON property names (which must be output asJsonToken.FIELD_NAME) for Map that has specified declared key type, and is for specified property (or, if property is null, as root value)Serializers.Base.findArraySerializer(SerializationConfig config, ArrayType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.findArraySerializer(SerializationConfig config, ArrayType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specified array type.Serializers.Base.findCollectionLikeSerializer(SerializationConfig config, CollectionLikeType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.findCollectionLikeSerializer(SerializationConfig config, CollectionLikeType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specified "Collection-like" type (type that acts likeCollection, but does not implement it).Serializers.Base.findCollectionSerializer(SerializationConfig config, CollectionType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.findCollectionSerializer(SerializationConfig config, CollectionType type, BeanDescription beanDesc, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specifiedCollectiontype.protected JsonSerializer<?>BasicSerializerFactory.findConvertingSerializer(SerializerProvider prov, Annotated a, JsonSerializer<?> ser) Helper method that will check whether given annotated entity (usually class, but may also be a property accessor) indicates that aConverteris to be used; and if so, to construct and return suitable serializer for it.Serializers.Base.findMapLikeSerializer(SerializationConfig config, MapLikeType type, BeanDescription beanDesc, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.findMapLikeSerializer(SerializationConfig config, MapLikeType type, BeanDescription beanDesc, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specified "Map-like" type (type that acts likeMap, but does not implement it).Serializers.Base.findMapSerializer(SerializationConfig config, MapType type, BeanDescription beanDesc, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Serializers.findMapSerializer(SerializationConfig config, MapType type, BeanDescription beanDesc, JsonSerializer<Object> keySerializer, TypeSerializer elementTypeSerializer, JsonSerializer<Object> elementValueSerializer) Method called by serialization framework first time a serializer is needed for specifiedMaptype.Serializers.Base.findReferenceSerializer(SerializationConfig config, ReferenceType type, BeanDescription beanDesc, TypeSerializer contentTypeSerializer, JsonSerializer<Object> contentValueSerializer) Serializers.findReferenceSerializer(SerializationConfig config, ReferenceType type, BeanDescription beanDesc, TypeSerializer contentTypeSerializer, JsonSerializer<Object> contentValueSerializer) Method called by serialization framework first time a serializer is needed for givenReferenceTypeBeanSerializerModifier.modifyArraySerializer(SerializationConfig config, ArrayType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) Method called byDeserializerFactoryafter it has constructed the standard serializer for givenArrayTypeto make it possible to either replace or augment this serializer with additional functionality.BeanSerializerModifier.modifyCollectionLikeSerializer(SerializationConfig config, CollectionLikeType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) BeanSerializerModifier.modifyCollectionSerializer(SerializationConfig config, CollectionType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) BeanSerializerModifier.modifyEnumSerializer(SerializationConfig config, JavaType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) BeanSerializerModifier.modifyKeySerializer(SerializationConfig config, JavaType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) Method called byDeserializerFactoryafter it has constructed the default key serializer to use for serializingMapkeys of given type.BeanSerializerModifier.modifyMapLikeSerializer(SerializationConfig config, MapLikeType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) BeanSerializerModifier.modifyMapSerializer(SerializationConfig config, MapType valueType, BeanDescription beanDesc, JsonSerializer<?> serializer) BeanSerializerModifier.modifySerializer(SerializationConfig config, BeanDescription beanDesc, JsonSerializer<?> serializer) Method called byBeanSerializerFactoryafter constructing default bean serializer instance with properties collected and ordered earlier.voidDefaultSerializerProvider.serializePolymorphic(JsonGenerator gen, Object value, JavaType rootType, JsonSerializer<Object> valueSer, TypeSerializer typeSer) Alternate serialization call used for polymorphic types, whenTypeSerializeris already known, but the actual serializer may or may not be.voidDefaultSerializerProvider.serializeValue(JsonGenerator gen, Object value, JavaType rootType, JsonSerializer<Object> ser) The method to be called byObjectWriterfor serializing given value (assumed to be of specified root type, instead of runtime type of value), when it may know specificJsonSerializerto use.Constructors in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser with parameters of type JsonSerializerModifierConstructorDescriptionAnyGetterWriter(BeanProperty property, AnnotatedMember accessor, JsonSerializer<?> serializer) BeanPropertyWriter(BeanPropertyDefinition propDef, AnnotatedMember member, Annotations contextAnnotations, JavaType declaredType, JsonSerializer<?> ser, TypeSerializer typeSer, JavaType serType, boolean suppressNulls, Object suppressableValue) Deprecated.BeanPropertyWriter(BeanPropertyDefinition propDef, AnnotatedMember member, Annotations contextAnnotations, JavaType declaredType, JsonSerializer<?> ser, TypeSerializer typeSer, JavaType serType, boolean suppressNulls, Object suppressableValue, Class<?>[] includeInViews) protectedVirtualBeanPropertyWriter(BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType, JsonSerializer<?> ser, TypeSerializer typeSer, JavaType serType, JsonInclude.Value inclusion) Deprecated.protectedVirtualBeanPropertyWriter(BeanPropertyDefinition propDef, Annotations contextAnnotations, JavaType declaredType, JsonSerializer<?> ser, TypeSerializer typeSer, JavaType serType, JsonInclude.Value inclusion, Class<?>[] includeInViews) Pass-through constructor that may be used by sub-classes that want full control over implementation. -
Uses of JsonSerializer in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.impl
Subclasses of JsonSerializer in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.implModifier and TypeClassDescriptionclassSpecialized POJO serializer that differs fromBeanSerializerin that instead of producing a JSON Object it will output a JSON Array, omitting field names, and serializing values in specified serialization order.classSpecial bogus "serializer" that will throwJsonMappingExceptionif itsFailingSerializer.serialize(java.lang.Object, edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.core.JsonGenerator, edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.SerializerProvider)gets invoked.final classThis is an optimized serializer for Lists that can be efficiently traversed by index (as opposed to others, such asLinkedListthat cannot}.final classEfficient implement for serializingLists that contains Strings and are random-accessible.classclassclassStandard serializer used forString[]values.classEfficient implement for serializingCollections that contain Strings.final classSimple serializer that will call configured type serializer, passing in configured data serializer, and exposing it all as a simple serializer.classclassSpecial bogus "serializer" that will throwInvalidDefinitionExceptionif itsUnsupportedTypeSerializer.serialize(java.lang.Object, edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.core.JsonGenerator, edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.SerializerProvider)gets invoked.classFields in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.impl declared as JsonSerializerModifier and TypeFieldDescriptionprotected final JsonSerializer<Object>StringArraySerializer._elementSerializerValue serializer to use, if it's not the standard one (if it is we can optimize serialization a lot)protected JsonSerializer<Object>MapEntrySerializer._keySerializerKey serializer to use, if it can be statically determinedprotected final JsonSerializer<Object>TypeWrappedSerializer._serializerprotected JsonSerializer<Object>MapEntrySerializer._valueSerializerValue serializer to use, if it can be statically determinedfinal JsonSerializer<Object>ObjectIdWriter.serializerSerializer used for serializing id values.final JsonSerializer<Object>PropertySerializerMap.SerializerAndMapResult.serializerMethods in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.impl that return JsonSerializerModifier and TypeMethodDescriptionprotected final JsonSerializer<Object>MapEntrySerializer._findAndAddDynamic(PropertySerializerMap map, JavaType type, SerializerProvider provider) protected final JsonSerializer<Object>MapEntrySerializer._findAndAddDynamic(PropertySerializerMap map, Class<?> type, SerializerProvider provider) protected JsonSerializer<Object>UnwrappingBeanPropertyWriter._findAndAddDynamic(PropertySerializerMap map, Class<?> type, SerializerProvider provider) IndexedStringListSerializer._withResolved(BeanProperty prop, Boolean unwrapSingle) StringArraySerializer._withResolved(BeanProperty prop, Boolean unwrapSingle) StringCollectionSerializer._withResolved(BeanProperty prop, Boolean unwrapSingle) MapEntrySerializer.createContextual(SerializerProvider provider, BeanProperty property) StringArraySerializer.createContextual(SerializerProvider provider, BeanProperty property) TypeWrappedSerializer.createContextual(SerializerProvider provider, BeanProperty property) MapEntrySerializer.getContentSerializer()StringArraySerializer.getContentSerializer()abstract JsonSerializer<Object>PropertySerializerMap.serializerFor(Class<?> type) Main lookup method.ReadOnlyClassToSerializerMap.typedValueSerializer(JavaType type) ReadOnlyClassToSerializerMap.typedValueSerializer(Class<?> type) ReadOnlyClassToSerializerMap.untypedValueSerializer(JavaType type) ReadOnlyClassToSerializerMap.untypedValueSerializer(Class<?> type) BeanAsArraySerializer.unwrappingSerializer(NameTransformer transformer) UnwrappingBeanSerializer.unwrappingSerializer(NameTransformer transformer) TypeWrappedSerializer.valueSerializer()Methods in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.impl with parameters of type JsonSerializerModifier and TypeMethodDescriptionPropertySerializerMap.addSerializer(JavaType type, JsonSerializer<Object> serializer) PropertySerializerMap.addSerializer(Class<?> type, JsonSerializer<Object> serializer) Method that can be used to 'register' a serializer that caller has resolved without help of this map.voidUnwrappingBeanPropertyWriter.assignSerializer(JsonSerializer<Object> ser) abstract PropertySerializerMapPropertySerializerMap.newWith(Class<?> type, JsonSerializer<Object> serializer) voidIndexedListSerializer.serializeContentsUsing(List<?> value, JsonGenerator jgen, SerializerProvider provider, JsonSerializer<Object> ser) IndexedListSerializer.withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, Boolean unwrapSingle) IteratorSerializer.withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, Boolean unwrapSingle) MapEntrySerializer.withResolved(BeanProperty property, JsonSerializer<?> keySerializer, JsonSerializer<?> valueSerializer, Object suppressableValue, boolean suppressNulls) ObjectIdWriter.withSerializer(JsonSerializer<?> ser) Method parameters in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.impl with type arguments of type JsonSerializerModifier and TypeMethodDescriptionstatic ReadOnlyClassToSerializerMapReadOnlyClassToSerializerMap.from(LRUMap<TypeKey, JsonSerializer<Object>> src) Factory method for constructing an instance.Constructors in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.impl with parameters of type JsonSerializerModifierConstructorDescriptionIndexedListSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> valueSerializer) IndexedListSerializer(IndexedListSerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSerializer, Boolean unwrapSingle) IteratorSerializer(IteratorSerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSerializer, Boolean unwrapSingle) protectedMapEntrySerializer(MapEntrySerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> keySer, JsonSerializer<?> valueSer) Deprecated.protectedMapEntrySerializer(MapEntrySerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> keySer, JsonSerializer<?> valueSer, Object suppressableValue, boolean suppressNulls) protectedObjectIdWriter(JavaType t, SerializableString propName, ObjectIdGenerator<?> gen, JsonSerializer<?> ser, boolean alwaysAsId) SerializerAndMapResult(JsonSerializer<Object> serializer, PropertySerializerMap map) StringArraySerializer(StringArraySerializer src, BeanProperty prop, JsonSerializer<?> ser, Boolean unwrapSingle) TypeWrappedSerializer(TypeSerializer typeSer, JsonSerializer<?> ser) Constructor parameters in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.impl with type arguments of type JsonSerializerModifierConstructorDescription -
Uses of JsonSerializer in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.std
Subclasses of JsonSerializer in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.stdModifier and TypeClassDescriptionclassIntermediate base class for serializers used for various Java arrays.classBase class for serializers that will output contents as JSON arrays; typically serializers used forCollectionand array types.classclassBase class both for the standard bean serializer, and couple of variants that only differ in small details.final classSerializer used for primitive boolean, as well as java.util.Boolean wrapper type.classUnlike other integral number array serializers, we do not just print out byte values as numbers.classclassStandard serializer forCalendar.classAlso: default bean access will not do much good with Class.class.classFallback serializer for cases where Collection is not known to be of type for which more specializer serializer exists (such as index-accessible List).classFor efficiency, we will serialize Dates as longs, instead of potentially more readable Strings.classclassStandard serializer used forEnumtypes.classclassFor now, File objects get serialized by just outputting absolute (but not canonical) name as String valueclassSimple serializer forInetAddress.classSimple serializer forInetSocketAddress.classclassSerializer class that can serialize Object that have aJsonValueannotation to indicate that serialization should be done by calling the method annotated, and serializing result it returns.classStandard serializer implementation for serializing {link java.util.Map} types.classDeprecated.classThis is a simple dummy serializer that will just output literal JSON null value whenever serialization is requested.classAs a fallback, we may need to use this serializer for other types ofNumbers: both custom types and "big" numbers likeBigIntegerandBigDecimal.static classShared base class for actual primitive/wrapper number serializers.static classThis is the special serializer for regularDoubles (and primitive doubles)static classstatic classThis is the special serializer for regularIntegers (and primitive ints)static classSimilar toNumberSerializers.IntegerSerializer, but will not cast to Integer: instead, cast is toNumber, and conversion is by callingNumber.intValue().static classstatic classclassGeneric serializer for Object arrays (Object[]).classThis is a simple dummy serializer that will just output raw values by calling toString() on value to serialize.classBase implementation for values ofReferenceType.classGeneric handler for types that implementJsonSerializable.classCompared to regularDateserialization, we do use String representation here.classclassStaticListSerializerBase<T extends Collection<?>>Intermediate base class for Lists, Collections and Arrays that contain static (non-dynamic) value types.static classstatic classCharacter arrays are different from other integral number arrays in that they are most likely to be textual data, and should be written as Strings, not arrays of entries.static classstatic classstatic classstatic classstatic classprotected static classIntermediate base class used for cases where we may add type information (excludes boolean/int/double arrays).classSerializer implementation where given Java type is first converted to an intermediate "delegate type" (using a configuredConverter, and then this delegate value is serialized by Jackson.static classstatic classstatic classclassDeprecated.static classThis is a "chameleon" style multi-type key serializer for simple standard JDK types.static classKey serializer used when key type is not known statically, and actual key serializer needs to be dynamically located.static classSpecialized instance to use for Enum keys, as per [databind#1322]static classSimple and fast key serializer when keys are Strings.classclassBase class used by all standard serializers, and can also be used for custom serializers (in fact, this is the recommended base class to use).final classThis is the special serializer for regularStrings.classclassSimple "bogus" serializer that will just serialize an empty Object for any given value.classWe also want to directly support serialization ofTokenBuffer; and since it is part of core package, it cannot implementJsonSerializable(which is only included in the mapper package)classSimple general purpose serializer, useful for any type for whichObject.toString()returns the desired JSON value.classIntermediate base class that serves as base for standardToStringSerializeras well as for custom subtypes that want to add processing for converting from value to output into itsStringrepresentation (whereas standard version simply calls value object'stoString()method).classSpecializedJsonSerializerto outputUUIDs.Fields in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.std declared as JsonSerializerModifier and TypeFieldDescriptionprotected final JsonSerializer<Object>StdDelegatingSerializer._delegateSerializerUnderlying serializer for typeT.protected final JsonSerializer<Object>AsArraySerializerBase._elementSerializerValue serializer to use, if it can be statically determinedprotected JsonSerializer<Object>ObjectArraySerializer._elementSerializerValue serializer to use, if it can be statically determined.protected JsonSerializer<Object>MapProperty._keySerializerprotected JsonSerializer<Object>MapSerializer._keySerializerKey serializer to use, if it can be statically determinedprotected final JsonSerializer<Object>JsonValueSerializer._valueSerializerprotected JsonSerializer<Object>MapProperty._valueSerializerprotected JsonSerializer<Object>MapSerializer._valueSerializerValue serializer to use, if it can be statically determinedprotected final JsonSerializer<Object>ReferenceTypeSerializer._valueSerializerSerializer for content values, if statically known.protected static final JsonSerializer<Object>StdKeySerializers.DEFAULT_KEY_SERIALIZERprotected static final JsonSerializer<Object>StdKeySerializers.DEFAULT_STRING_SERIALIZERFields in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.std with type parameters of type JsonSerializerModifier and TypeFieldDescriptionprotected static final HashMap<String,JsonSerializer<?>> StdArraySerializers._arraySerializersMethods in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.std that return JsonSerializerModifier and TypeMethodDescriptionprotected final JsonSerializer<Object>AsArraySerializerBase._findAndAddDynamic(PropertySerializerMap map, JavaType type, SerializerProvider provider) protected final JsonSerializer<Object>AsArraySerializerBase._findAndAddDynamic(PropertySerializerMap map, Class<?> type, SerializerProvider provider) protected final JsonSerializer<Object>MapSerializer._findAndAddDynamic(PropertySerializerMap map, JavaType type, SerializerProvider provider) protected final JsonSerializer<Object>MapSerializer._findAndAddDynamic(PropertySerializerMap map, Class<?> type, SerializerProvider provider) protected final JsonSerializer<Object>ObjectArraySerializer._findAndAddDynamic(PropertySerializerMap map, JavaType type, SerializerProvider provider) protected final JsonSerializer<Object>ObjectArraySerializer._findAndAddDynamic(PropertySerializerMap map, Class<?> type, SerializerProvider provider) protected JsonSerializer<Object>StdKeySerializers.Dynamic._findAndAddDynamic(PropertySerializerMap map, Class<?> type, SerializerProvider provider) protected JsonSerializer<Object>JsonValueSerializer._findDynamicSerializer(SerializerProvider ctxt, Class<?> valueClass) protected JsonSerializer<Object>StdDelegatingSerializer._findSerializer(Object value, SerializerProvider serializers) Helper method used for locating serializer to use in dynamic use case, where actual type value gets converted to is not specified beyond basicObject, and where serializer needs to be located dynamically based on actual value type.abstract JsonSerializer<?>ArraySerializerBase._withResolved(BeanProperty prop, Boolean unwrapSingle) ObjectArraySerializer._withResolved(BeanProperty prop, Boolean unwrapSingle) abstract JsonSerializer<?>StaticListSerializerBase._withResolved(BeanProperty prop, Boolean unwrapSingle) StdArraySerializers.BooleanArraySerializer._withResolved(BeanProperty prop, Boolean unwrapSingle) StdArraySerializers.DoubleArraySerializer._withResolved(BeanProperty prop, Boolean unwrapSingle) StdArraySerializers.FloatArraySerializer._withResolved(BeanProperty prop, Boolean unwrapSingle) StdArraySerializers.IntArraySerializer._withResolved(BeanProperty prop, Boolean unwrapSingle) StdArraySerializers.LongArraySerializer._withResolved(BeanProperty prop, Boolean unwrapSingle) StdArraySerializers.ShortArraySerializer._withResolved(BeanProperty prop, Boolean unwrapSingle) static JsonSerializer<?>NumberSerializer.bigDecimalAsStringSerializer()ArraySerializerBase.createContextual(SerializerProvider serializers, BeanProperty property) AsArraySerializerBase.createContextual(SerializerProvider serializers, BeanProperty property) This method is needed to resolve contextual annotations like per-property overrides, as well as do recursive call tocreateContextualof content serializer, if known statically.BeanSerializerBase.createContextual(SerializerProvider provider, BeanProperty property) BooleanSerializer.createContextual(SerializerProvider serializers, BeanProperty property) DateTimeSerializerBase.createContextual(SerializerProvider serializers, BeanProperty property) EnumSerializer.createContextual(SerializerProvider serializers, BeanProperty property) To support some level of per-property configuration, we will need to make things contextual.InetAddressSerializer.createContextual(SerializerProvider serializers, BeanProperty property) JsonValueSerializer.createContextual(SerializerProvider ctxt, BeanProperty property) We can try to find the actual serializer for value, if we can statically figure out what the result type must be.MapSerializer.createContextual(SerializerProvider provider, BeanProperty property) NumberSerializer.createContextual(SerializerProvider prov, BeanProperty property) NumberSerializers.Base.createContextual(SerializerProvider prov, BeanProperty property) ObjectArraySerializer.createContextual(SerializerProvider serializers, BeanProperty property) ReferenceTypeSerializer.createContextual(SerializerProvider provider, BeanProperty property) StaticListSerializerBase.createContextual(SerializerProvider serializers, BeanProperty property) StdDelegatingSerializer.createContextual(SerializerProvider provider, BeanProperty property) UUIDSerializer.createContextual(SerializerProvider serializers, BeanProperty property) protected JsonSerializer<?>StdSerializer.findAnnotatedContentSerializer(SerializerProvider serializers, BeanProperty property) Convenience method for finding out possibly configured content value serializer.protected JsonSerializer<?>StdSerializer.findContextualConvertingSerializer(SerializerProvider provider, BeanProperty property, JsonSerializer<?> existingSerializer) Helper method that can be used to see if specified property has annotation indicating that a converter is to be used for contained values (contents of structured types; array/List/Map values)protected JsonSerializer<?>StdSerializer.findConvertingContentSerializer(SerializerProvider provider, BeanProperty prop, JsonSerializer<?> existingSerializer) Deprecated.protected JsonSerializer<Object>BeanSerializerBase.findConvertingSerializer(SerializerProvider provider, BeanPropertyWriter prop) Helper method that can be used to see if specified property is annotated to indicate use of a converter for property value (in case of container types, it is container type itself, not key or content type).static JsonSerializer<?>StdArraySerializers.findStandardImpl(Class<?> cls) Accessor for checking to see if there is a standard serializer for given primitive value type.AsArraySerializerBase.getContentSerializer()MapSerializer.getContentSerializer()ObjectArraySerializer.getContentSerializer()StdArraySerializers.BooleanArraySerializer.getContentSerializer()StdArraySerializers.DoubleArraySerializer.getContentSerializer()StdArraySerializers.FloatArraySerializer.getContentSerializer()StdArraySerializers.IntArraySerializer.getContentSerializer()StdArraySerializers.LongArraySerializer.getContentSerializer()StdArraySerializers.ShortArraySerializer.getContentSerializer()static JsonSerializer<Object>StdKeySerializers.getDefault()Deprecated.since 2.7StdDelegatingSerializer.getDelegatee()static JsonSerializer<Object>StdKeySerializers.getFallbackKeySerializer(SerializationConfig config, Class<?> rawKeyType) Method called if no specified key serializer was located; will return a "default" key serializer.MapSerializer.getKeySerializer()Accessor for currently assigned key serializer.static JsonSerializer<Object>StdKeySerializers.getStdKeySerializer(SerializationConfig config, Class<?> rawKeyType, boolean useDefault) ReferenceTypeSerializer.unwrappingSerializer(NameTransformer transformer) Methods in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.std with parameters of type JsonSerializerModifier and TypeMethodDescriptionstatic MapSerializerMapSerializer.construct(String[] ignoredList, JavaType mapType, boolean staticValueType, TypeSerializer vts, JsonSerializer<Object> keySerializer, JsonSerializer<Object> valueSerializer, Object filterId) Deprecated.Since 2.8 use the other overloadstatic MapSerializerMapSerializer.construct(Set<String> ignoredEntries, JavaType mapType, boolean staticValueType, TypeSerializer vts, JsonSerializer<Object> keySerializer, JsonSerializer<Object> valueSerializer, Object filterId) static MapSerializerMapSerializer.construct(Set<String> ignoredEntries, Set<String> includedEntries, JavaType mapType, boolean staticValueType, TypeSerializer vts, JsonSerializer<Object> keySerializer, JsonSerializer<Object> valueSerializer, Object filterId) protected JsonSerializer<?>StdSerializer.findContextualConvertingSerializer(SerializerProvider provider, BeanProperty property, JsonSerializer<?> existingSerializer) Helper method that can be used to see if specified property has annotation indicating that a converter is to be used for contained values (contents of structured types; array/List/Map values)protected JsonSerializer<?>StdSerializer.findConvertingContentSerializer(SerializerProvider provider, BeanProperty prop, JsonSerializer<?> existingSerializer) Deprecated.protected booleanStdSerializer.isDefaultSerializer(JsonSerializer<?> serializer) Method that can be called to determine if given serializer is the default serializer Jackson uses; as opposed to a custom serializer installed by a module or calling application.protected booleanJsonValueSerializer.isNaturalTypeWithStdHandling(Class<?> rawType, JsonSerializer<?> ser) voidMapProperty.reset(Object key, JsonSerializer<Object> keySer, JsonSerializer<Object> valueSer) Deprecated.voidMapProperty.reset(Object key, Object value, JsonSerializer<Object> keySer, JsonSerializer<Object> valueSer) Initialization method that needs to be called before passing property to filter.voidCollectionSerializer.serializeContentsUsing(Collection<?> value, JsonGenerator g, SerializerProvider provider, JsonSerializer<Object> ser) voidObjectArraySerializer.serializeContentsUsing(Object[] value, JsonGenerator jgen, SerializerProvider provider, JsonSerializer<Object> ser) voidMapSerializer.serializeFieldsUsing(Map<?, ?> value, JsonGenerator gen, SerializerProvider provider, JsonSerializer<Object> ser) Method called to serialize fields, when the value type is statically known, so that value serializer is passed and does not need to be fetched from provider.protected voidStdSerializer.visitArrayFormat(JsonFormatVisitorWrapper visitor, JavaType typeHint, JsonSerializer<?> itemSerializer, JavaType itemType) protected StdDelegatingSerializerStdDelegatingSerializer.withDelegate(Converter<Object, ?> converter, JavaType delegateType, JsonSerializer<?> delegateSerializer) Method used for creating resolved contextual instances.final AsArraySerializerBase<T>AsArraySerializerBase.withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer) Deprecated.since 2.6: use the overloaded method that takes 'unwrapSingle'abstract AsArraySerializerBase<T>AsArraySerializerBase.withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, Boolean unwrapSingle) protected ReferenceTypeSerializer<AtomicReference<?>>AtomicReferenceSerializer.withResolved(BeanProperty prop, TypeSerializer vts, JsonSerializer<?> valueSer, NameTransformer unwrapper) CollectionSerializer.withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, Boolean unwrapSingle) EnumSetSerializer.withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, Boolean unwrapSingle) IterableSerializer.withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, Boolean unwrapSingle) protected JsonValueSerializerJsonValueSerializer.withResolved(BeanProperty property, TypeSerializer vts, JsonSerializer<?> ser, boolean forceTypeInfo) MapSerializer.withResolved(BeanProperty property, JsonSerializer<?> keySerializer, JsonSerializer<?> valueSerializer, Set<String> ignored, boolean sortKeys) MapSerializer.withResolved(BeanProperty property, JsonSerializer<?> keySerializer, JsonSerializer<?> valueSerializer, Set<String> ignored, Set<String> included, boolean sortKeys) ObjectArraySerializer.withResolved(BeanProperty prop, TypeSerializer vts, JsonSerializer<?> ser, Boolean unwrapSingle) protected abstract ReferenceTypeSerializer<T>ReferenceTypeSerializer.withResolved(BeanProperty prop, TypeSerializer vts, JsonSerializer<?> valueSer, NameTransformer unwrapper) Mutant factory method called when changes are needed; should construct newly configured instance with new values as indicated.Method parameters in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.std with type arguments of type JsonSerializerModifier and TypeMethodDescriptionstatic voidNumberSerializers.addAll(Map<String, JsonSerializer<?>> allDeserializers) Constructors in edu.internet2.middleware.grouperClientExt.com.fasterxml.jackson.databind.ser.std with parameters of type JsonSerializerModifierConstructorDescriptionprotectedAsArraySerializerBase(AsArraySerializerBase<?> src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer) Deprecated.since 2.6: use the overloaded method that takes 'unwrapSingle'protectedAsArraySerializerBase(AsArraySerializerBase<?> src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, Boolean unwrapSingle) protectedAsArraySerializerBase(Class<?> cls, JavaType elementType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<?> elementSerializer, Boolean unwrapSingle) General purpose constructor.protectedAsArraySerializerBase(Class<?> cls, JavaType et, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> elementSerializer) Deprecated.Since 2.6 Use variants that either take 'src', or do NOT pass BeanPropertyprotectedAsArraySerializerBase(Class<?> cls, JavaType et, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> elementSerializer) Non-contextual, "blueprint" constructor typically called when the first instance is created, without knowledge of property it was used via.protectedAtomicReferenceSerializer(AtomicReferenceSerializer base, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSer, NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls) AtomicReferenceSerializer(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> ser) CollectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, BeanProperty property, JsonSerializer<Object> valueSerializer) Deprecated.since 2.6CollectionSerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> valueSerializer) CollectionSerializer(CollectionSerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSerializer, Boolean unwrapSingle) EnumSetSerializer(EnumSetSerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSerializer, Boolean unwrapSingle) IterableSerializer(IterableSerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSerializer, Boolean unwrapSingle) JsonValueSerializer(AnnotatedMember accessor, JsonSerializer<?> ser) Deprecated.Since 2.12JsonValueSerializer(AnnotatedMember accessor, TypeSerializer vts, JsonSerializer<?> ser) JsonValueSerializer(JsonValueSerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> ser, boolean forceTypeInfo) protectedMapSerializer(MapSerializer src, BeanProperty property, JsonSerializer<?> keySerializer, JsonSerializer<?> valueSerializer, Set<String> ignoredEntries) Deprecated.in 2.12, remove from 3.0protectedMapSerializer(MapSerializer src, BeanProperty property, JsonSerializer<?> keySerializer, JsonSerializer<?> valueSerializer, Set<String> ignoredEntries, Set<String> includedEntries) protectedMapSerializer(Set<String> ignoredEntries, JavaType keyType, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts, JsonSerializer<?> keySerializer, JsonSerializer<?> valueSerializer) Deprecated.in 2.12, remove from 3.0protectedMapSerializer(Set<String> ignoredEntries, Set<String> includedEntries, JavaType keyType, JavaType valueType, boolean valueTypeIsStatic, TypeSerializer vts, JsonSerializer<?> keySerializer, JsonSerializer<?> valueSerializer) ObjectArraySerializer(JavaType elemType, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> elementSerializer) ObjectArraySerializer(ObjectArraySerializer src, BeanProperty property, TypeSerializer vts, JsonSerializer<?> elementSerializer, Boolean unwrapSingle) protectedReferenceTypeSerializer(ReferenceTypeSerializer<?> base, BeanProperty property, TypeSerializer vts, JsonSerializer<?> valueSer, NameTransformer unwrapper, Object suppressableValue, boolean suppressNulls) ReferenceTypeSerializer(ReferenceType fullType, boolean staticTyping, TypeSerializer vts, JsonSerializer<Object> ser) StdDelegatingSerializer(Converter<Object, ?> converter, JavaType delegateType, JsonSerializer<?> delegateSerializer)
StdKeySerializers.Defaultinstead.