Class FileReloaderUtils

    • Method Detail

      • updateFile

        public void updateFile​(String sourceUrl,
                               FileReloader fileReloader)
                        throws Exception
        Request to read/update the file
        Parameters:
        sourceUrl - url of the file to read
        fileReloader - FileReloader that will be called to get an ID and read the file
        Throws:
        Exception - the source can not be read
      • updateFile

        public void updateFile​(String sourceUrl,
                               boolean forceRead,
                               FileReloader fileReloader)
                        throws Exception
        Request to read/update the file
        Parameters:
        sourceUrl - url of the file to read
        forceRead - true to force reload even if the file was not modified
        fileReloader - FileReloader that will be called to get an ID and read the file
        Throws:
        Exception - the source can not be read
      • updateFile

        public void updateFile​(String sourceUrl,
                               Map parameters,
                               FileReloader fileReloader)
                        throws Exception
        Request to read/update the file
        Parameters:
        sourceUrl - url of the file to read
        parameters - parameters passed to the resolver to get the file via it's url (can be null)
        fileReloader - FileReloader that will be called to get an ID and read the file
        Throws:
        Exception - the source can not be read
      • updateFile

        public void updateFile​(String sourceUrl,
                               Map parameters,
                               boolean forceRead,
                               FileReloader fileReloader)
                        throws Exception
        Request to read/update the file
        Parameters:
        sourceUrl - url of the file to read
        parameters - parameters passed to the resolver to get the file via it's url (can be null)
        forceRead - true to force reload even if the file was not modified
        fileReloader - FileReloader that will be called to get an ID and read the file
        Throws:
        Exception - the source can not be read