All Downloads are FREE. Search and download functionalities are using the official Maven repository.

edu.ksu.canvas.interfaces.FileReader Maven / Gradle / Ivy

The newest version!
package edu.ksu.canvas.interfaces;

import edu.ksu.canvas.model.File;

import java.io.IOException;
import java.util.Optional;

/**
 * This is just used for getting a file after it's been uploaded at the moment.
 */
public interface FileReader extends CanvasReader {

    /**
     * This is used primarily when you have a redirect after you've uploaded a file.
     * @param url The URL of the file that has been uploaded.
     * @return The file object wrapped in an optional.
     * @throws IOException When there is an error communicating with Canvas
     */
    Optional getFile(String url) throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy