Class AbstractJSONResponseDecoderFunction<T>
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.idp.plugin.authn.oidc.rp.decoding.impl.AbstractJSONResponseDecoderFunction<T>
-
- Type Parameters:
T- the return type of the function.
- All Implemented Interfaces:
Function<org.apache.http.HttpResponse,T>,Component,DestructableComponent,InitializableComponent
- Direct Known Subclasses:
DefaultAccessTokenResponseDecoder,DefaultUserInfoResponseDecoder
public abstract class AbstractJSONResponseDecoderFunction<T> extends AbstractInitializableComponent implements Function<org.apache.http.HttpResponse,T>
Abstract class for JSON based response decoders.
-
-
Field Summary
Fields Modifier and Type Field Description private com.fasterxml.jackson.databind.ObjectMapperobjectMapperJSON object mapper.
-
Constructor Summary
Constructors Constructor Description AbstractJSONResponseDecoderFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()protected com.fasterxml.jackson.databind.ObjectMappergetObjectMapper()Get the object mapper.voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper)Set the JSON Object Mapper to use.-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
-
-
-
Field Detail
-
objectMapper
@NonnullAfterInit private com.fasterxml.jackson.databind.ObjectMapper objectMapper
JSON object mapper.
-
-
Method Detail
-
setObjectMapper
public void setObjectMapper(@Nonnull com.fasterxml.jackson.databind.ObjectMapper mapper)Set the JSON Object Mapper to use.- Parameters:
mapper- the object mapper.
-
getObjectMapper
@NonnullAfterInit protected com.fasterxml.jackson.databind.ObjectMapper getObjectMapper()
Get the object mapper.- Returns:
- the object mapper.
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-
-