com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger
Class GerritDynamicUrlProcessor
java.lang.Object
com.sonyericsson.hudson.plugins.gerrit.trigger.hudsontrigger.GerritDynamicUrlProcessor
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>
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
fetch
public static List<GerritProject> fetch(String gerritTriggerConfigUrl,
String serverName)
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 fetchserverName
- name of the Gerrit server.
- 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
Copyright © 2004-2013. All Rights Reserved.