Class DefaultMetadataPolicyResponseHandler
- java.lang.Object
-
- net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
-
- net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
-
- net.shibboleth.oidc.metadata.policy.impl.DefaultMetadataPolicyResponseHandler
-
- All Implemented Interfaces:
Component,DestructableComponent,IdentifiableComponent,IdentifiedComponent,InitializableComponent,org.apache.http.client.ResponseHandler<Map<String,MetadataPolicy>>
public class DefaultMetadataPolicyResponseHandler extends AbstractIdentifiableInitializableComponent implements org.apache.http.client.ResponseHandler<Map<String,MetadataPolicy>>
The response handler for parsing the metadata policy document into a map.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.private Function<byte[],List<Map<String,MetadataPolicy>>>parsingStrategyThe parsing strategy used for parsing metadata policies.
-
Constructor Summary
Constructors Constructor Description DefaultMetadataPolicyResponseHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoInitialize()Map<String,MetadataPolicy>handleResponse(org.apache.http.HttpResponse response)voidsetParsingStrategy(Function<byte[],List<Map<String,MetadataPolicy>>> strategy)Set the parsing strategy used for parsing metadata policies.-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiableInitializableComponent
setId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractIdentifiedInitializableComponent
getId
-
Methods inherited from class net.shibboleth.utilities.java.support.component.AbstractInitializableComponent
destroy, doDestroy, initialize, isDestroyed, isInitialized
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.shibboleth.utilities.java.support.component.IdentifiedComponent
getId
-
-
-
-
Field Detail
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
parsingStrategy
@NonnullAfterInit private Function<byte[],List<Map<String,MetadataPolicy>>> parsingStrategy
The parsing strategy used for parsing metadata policies.
-
-
Method Detail
-
setParsingStrategy
public void setParsingStrategy(@Nonnull Function<byte[],List<Map<String,MetadataPolicy>>> strategy)Set the parsing strategy used for parsing metadata policies.- Parameters:
strategy- What to set.
-
doInitialize
protected void doInitialize() throws ComponentInitializationException- Overrides:
doInitializein classAbstractIdentifiedInitializableComponent- Throws:
ComponentInitializationException
-
handleResponse
@Nullable public Map<String,MetadataPolicy> handleResponse(org.apache.http.HttpResponse response) throws IOException
- Specified by:
handleResponsein interfaceorg.apache.http.client.ResponseHandler<Map<String,MetadataPolicy>>- Throws:
IOException
-
-