Class FunctionDrivenDynamicHTTPMetadataResolver

    • Field Detail

      • log

        @Nonnull
        private final org.slf4j.Logger log
        Logger.
      • requestURLBuilder

        @Nonnull
        private Function<CriteriaSet,​String> requestURLBuilder
        Function for building the request URL.
    • Constructor Detail

      • FunctionDrivenDynamicHTTPMetadataResolver

        public FunctionDrivenDynamicHTTPMetadataResolver​(@Nonnull
                                                         org.apache.http.client.HttpClient client)
        Constructor.
        Parameters:
        client - the instance of HttpClient used to fetch remote metadata
      • FunctionDrivenDynamicHTTPMetadataResolver

        public FunctionDrivenDynamicHTTPMetadataResolver​(@Nullable
                                                         Timer backgroundTaskTimer,
                                                         @Nonnull
                                                         org.apache.http.client.HttpClient client)
        Constructor.
        Parameters:
        backgroundTaskTimer - the Timer instance used to run resolver background managment tasks
        client - the instance of HttpClient used to fetch remote metadata
    • Method Detail

      • setRequestURLBuilder

        public void setRequestURLBuilder​(@Nonnull
                                         Function<CriteriaSet,​String> builder)
        Set the function which builds the request URL.

        Defaults to an instance of HTTPEntityIDRequestURLBuilder.

        Parameters:
        builder - the request URL builder function instance
      • buildRequestURL

        @Nullable
        protected String buildRequestURL​(@Nonnull
                                         CriteriaSet criteria)
        Build the request URL based on the input criteria set.
        Specified by:
        buildRequestURL in class AbstractDynamicHTTPMetadataResolver
        Parameters:
        criteria - the input criteria set
        Returns:
        the request URL, or null if it can not be built based on the supplied criteria