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 ServiceResponse.setContentDisposition() for more information. getPhysicalFile( ServiceRequest request ) returns File Returns a File associated with a given ServiceRequest upload( ServiceRequest request ) returns ServiceResponse Used to upload files to the server
upload( ServiceRequest request, Callback callback ) returns ServiceResponse Used to upload files to the server. The ServiceRequest must contain "multipart/form-data" encoded data. The form data must includes a "path" variable and at least one file.
Public Classes |