.. java:import:: java.io File .. java:import:: java.io IOException .. java:import:: org.caosdb.server.database.backend.implementation MySQL.ConnectionException .. java:import:: org.caosdb.server.database.exceptions EntityDoesNotExistException .. java:import:: org.caosdb.server.database.misc TransactionBenchmark .. java:import:: org.caosdb.server.entity EntityInterface .. java:import:: org.caosdb.server.entity Message .. java:import:: org.caosdb.server.entity Message.MessageType .. java:import:: org.caosdb.server.permissions EntityPermission .. java:import:: org.caosdb.server.transaction RetrieveSparseEntityByPath .. java:import:: org.caosdb.server.utils FileUtils .. java:import:: org.caosdb.server.utils ServerMessages .. java:import:: org.jdom2 Attribute .. java:import:: org.jdom2 Document .. java:import:: org.jdom2 Element .. java:import:: org.jdom2 JDOMException .. java:import:: org.restlet.data Disposition .. java:import:: org.restlet.data MediaType .. java:import:: org.restlet.data Status .. java:import:: org.restlet.representation FileRepresentation .. java:import:: org.restlet.representation Representation FileSystemResource ================== .. java:package:: org.caosdb.server.resource :noindex: .. java:type:: public class FileSystemResource extends AbstractCaosDBServerResource Download files via GET method from the file system directly without making the detour through the database. Other methods are not supported :author: Timm Fitschen Fields ------ ORPHANED_FILE_WARNING ^^^^^^^^^^^^^^^^^^^^^ .. java:field:: public static Message ORPHANED_FILE_WARNING :outertype: FileSystemResource Methods ------- getBenchmark ^^^^^^^^^^^^ .. java:method:: TransactionBenchmark getBenchmark() :outertype: FileSystemResource getEntityID ^^^^^^^^^^^ .. java:method:: protected String getEntityID(String path) throws Exception :outertype: FileSystemResource getFile ^^^^^^^ .. java:method:: protected File getFile(String path) throws Exception :outertype: FileSystemResource getFileElement ^^^^^^^^^^^^^^ .. java:method:: Element getFileElement(String directory, File file) throws Exception :outertype: FileSystemResource Return an element for the given file on a file system. If there is no File entity for this file, an element without `id` is returned, instead a corresponding message is added to the element. getThumbnailAttribute ^^^^^^^^^^^^^^^^^^^^^ .. java:method:: protected Attribute getThumbnailAttribute(File file, File child, String referenceString) :outertype: FileSystemResource httpGetInChildClass ^^^^^^^^^^^^^^^^^^^ .. java:method:: @Override protected final Representation httpGetInChildClass() throws Exception :outertype: FileSystemResource Download a File from the CaosDBFileSystem. Only one File per Request. :author: Timm Fitschen :throws IOException: :return: InputRepresentation httpPostInChildClass ^^^^^^^^^^^^^^^^^^^^ .. java:method:: @Override protected Representation httpPostInChildClass(Representation entity) throws ConnectionException, JDOMException :outertype: FileSystemResource