Interface FileEndpoint
-
- All Known Implementing Classes:
FileEndpointImpl
@Path("/file") @Consumes("text/plain") @Produces("application/json") public interface FileEndpointContains methods for checking if files exist and other file manipulation tasks on the server.- Author:
- Jesse Sightler
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classFileEndpoint.PathTargetType
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanpathExists(String path)FileEndpoint.PathTargetTypepathTargetType(String path)Gets an indication as to whether the given path is a file or a directory.
-
-
-
Method Detail
-
pathExists
@POST @Path("pathExists") boolean pathExists(String path)
-
pathTargetType
@POST @Path("pathTargetType") FileEndpoint.PathTargetType pathTargetType(String path)Gets an indication as to whether the given path is a file or a directory. This will return null if this cannot be determined for any reason. For example, this will return null if the path is blank, non-existent, or if the server has no read permissions on this path.
-
-