Class GerritDynamicUrlProcessor


  • @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class)
    public final class GerritDynamicUrlProcessor
    extends Object
    This class handles the fetching and parsing of URLs for the Dynamic Trigger Configuration.
    Author:
    Fredrik Abrahamson <fredrik.abrahamson@sonymobile.com>
    • Method Detail

      • fetch

        public static List<GerritProject> fetch​(String gerritTriggerConfigUrl)
                                         throws IOException,
                                                ParseException
        This is where the actual fetching is done. If everything goes well, it returns a list of GerritProjects. If the fetched content hasn't changed since the last fetch, it returns null.
        Parameters:
        gerritTriggerConfigUrl - the URL to fetch
        Returns:
        a list of GerritProjects if successful, or null if no change
        Throws:
        ParseException - when the fetched content couldn't be parsed
        IOException - for all other kinds of fetch errors