Class AbstractJSONResponseDecoderFunction<T>
java.lang.Object
net.shibboleth.shared.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:
Component,DestructableComponent,InitializableComponent,org.apache.hc.core5.http.io.HttpClientResponseHandler<T>
- Direct Known Subclasses:
DefaultAccessTokenResponseDecoder,DefaultUserInfoResponseDecoder
public abstract class AbstractJSONResponseDecoderFunction<T>
extends AbstractInitializableComponent
implements org.apache.hc.core5.http.io.HttpClientResponseHandler<T>
Abstract class for JSON based Http client response decoders.
Note, any input stream obtained by the decoder MUST ensure the stream is closed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate com.fasterxml.jackson.databind.ObjectMapperJSON object mapper. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected com.fasterxml.jackson.databind.ObjectMapperGet the object mapper.voidsetObjectMapper(com.fasterxml.jackson.databind.ObjectMapper mapper) Set the JSON Object Mapper to use.Methods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentException, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.hc.core5.http.io.HttpClientResponseHandler
handleResponse
-
Field Details
-
objectMapper
JSON object mapper.
-
-
Constructor Details
-
AbstractJSONResponseDecoderFunction
public AbstractJSONResponseDecoderFunction()
-
-
Method Details
-
setObjectMapper
public void setObjectMapper(@Nonnull com.fasterxml.jackson.databind.ObjectMapper mapper) Set the JSON Object Mapper to use.- Parameters:
mapper- the object mapper.
-
getObjectMapper
Get the object mapper.- Returns:
- the object mapper.
-
doInitialize
- Overrides:
doInitializein classAbstractInitializableComponent- Throws:
ComponentInitializationException
-