Class DefaultJSONMapParsingStrategy<V>
java.lang.Object
net.shibboleth.oidc.metadata.cache.impl.DefaultJSONMapParsingStrategy<V>
- Type Parameters:
V- the map entry type.
public class DefaultJSONMapParsingStrategy<V>
extends Object
implements Function<byte[],List<Map<String,V>>>
Deserializes a UTF-8 JSON string into a Map.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private final com.fasterxml.jackson.databind.type.MapTypeThe map type used by object mapper for deserializing the JSON into desired format.private final com.fasterxml.jackson.databind.ObjectMapperJSON object mapper. -
Constructor Summary
ConstructorsConstructorDescriptionDefaultJSONMapParsingStrategy(com.fasterxml.jackson.databind.ObjectMapper mapper, Class<V> valueClass) Constructor.DefaultJSONMapParsingStrategy(Class<V> valueClass) Constructor. -
Method Summary
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
objectMapper
@Nonnull private final com.fasterxml.jackson.databind.ObjectMapper objectMapperJSON object mapper. -
mapType
@Nonnull private final com.fasterxml.jackson.databind.type.MapType mapTypeThe map type used by object mapper for deserializing the JSON into desired format.
-
-
Constructor Details
-
DefaultJSONMapParsingStrategy
public DefaultJSONMapParsingStrategy(@Nonnull com.fasterxml.jackson.databind.ObjectMapper mapper, @Nonnull Class<V> valueClass) Constructor.- Parameters:
mapper- the object mapper to use.valueClass- the class for the map value items.
-
DefaultJSONMapParsingStrategy
Constructor.- Parameters:
valueClass- the class for the map value items.
-
-
Method Details