Class DefaultMetadataPolicyResponseHandler
java.lang.Object
net.shibboleth.shared.component.AbstractInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
net.shibboleth.oidc.metadata.policy.impl.DefaultMetadataPolicyResponseHandler
- All Implemented Interfaces:
Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,org.apache.hc.core5.http.io.HttpClientResponseHandler<Map<String,MetadataPolicy>>
public class DefaultMetadataPolicyResponseHandler
extends AbstractIdentifiableInitializableComponent
implements org.apache.hc.core5.http.io.HttpClientResponseHandler<Map<String,MetadataPolicy>>
The response handler for parsing the metadata policy document into a map.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final org.slf4j.LoggerClass logger.private Function<byte[],List<Map<String, MetadataPolicy>>> The parsing strategy used for parsing metadata policies. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidhandleResponse(org.apache.hc.core5.http.ClassicHttpResponse response) voidsetParsingStrategy(Function<byte[], List<Map<String, MetadataPolicy>>> strategy) Set the parsing strategy used for parsing metadata policies.Methods inherited from class net.shibboleth.shared.component.AbstractIdentifiableInitializableComponent
setIdMethods inherited from class net.shibboleth.shared.component.AbstractIdentifiedInitializableComponent
ensureId, getId, ifDestroyedThrowDestroyedComponentException, ifInitializedThrowUnmodifiabledComponentException, ifNotInitializedThrowUninitializedComponentExceptionMethods inherited from class net.shibboleth.shared.component.AbstractInitializableComponent
checkComponentActive, checkSetterPreconditions, destroy, doDestroy, initialize, isDestroyed, isInitializedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.shibboleth.shared.component.IdentifiedComponent
getId
-
Field Details
-
log
@Nonnull private final org.slf4j.Logger logClass logger. -
parsingStrategy
The parsing strategy used for parsing metadata policies.
-
-
Constructor Details
-
DefaultMetadataPolicyResponseHandler
public DefaultMetadataPolicyResponseHandler()
-
-
Method Details
-
setParsingStrategy
Set the parsing strategy used for parsing metadata policies.- Parameters:
strategy- What to set.
-
doInitialize
- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
handleResponse
@Nullable public Map<String,MetadataPolicy> handleResponse(org.apache.hc.core5.http.ClassicHttpResponse response) throws IOException - Specified by:
handleResponsein interfaceorg.apache.hc.core5.http.io.HttpClientResponseHandler<Map<String,MetadataPolicy>> - Throws:
IOException
-