BASE_PATH, SERVICE_NAME
Constructor and Description |
---|
FileInfoImpl() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getFile(javax.ws.rs.core.HttpHeaders paramHttpHeaders,
java.lang.String file) |
javax.ws.rs.core.Response |
getFiles(javax.ws.rs.core.HttpHeaders h,
javax.ws.rs.core.UriInfo uriInfo,
java.lang.String dir,
boolean withDir,
boolean withFiles,
int level,
java.lang.String search,
int count,
int page,
boolean useCache)
Get the file/ directory listing.
|
public javax.ws.rs.core.Response getFiles(javax.ws.rs.core.HttpHeaders h, javax.ws.rs.core.UriInfo uriInfo, java.lang.String dir, boolean withDir, boolean withFiles, int level, java.lang.String search, int count, int page, boolean useCache)
FileInfo
getFiles
in interface FileInfo
h
- the param http headersuriInfo
- request url infodir
- The directory to list.withDir
- Whether or not to include directories in the listing. Default is true.withFiles
- Whether or not to include files in the listing. Default is true.level
- Include subdirectories down to a given depth. Default is 1.search
- Additional "Glob search pattern" for the file/ directory name. I.e. '*.log'count
- How many items to return with one call. Default is 50.page
- Paging support. Default is 1.useCache
- whether or not to use cache. Defaults to true.