JavaXT
|
|
FileService ClassProvides a set of web methods used to manage and view files on the server
Constructors FileService( )
Public MethodsgetList( ServiceRequest request ) returns ServiceResponse Returns a ServiceResponse with JSON object representing files and folders in a given path. Optional parameters include filter, sort, hidden, offset, and limit. getFile( ServiceRequest request ) returns ServiceResponse Returns a ServiceResponse with an InputStream associated with a file. Headers for the ServiceResponse are set with file metadata (e.g. content type, file size, and date). Caller can add additional response headers such as the content disposition to make the file "downloadable". See setContentDisposition() for more information. getPhysicalFile( ServiceRequest request ) returns File Returns a File associated with a given ServiceRequest |