public class Files extends Object implements ChildCollection<RevisionResource,FileResource>
| Modifier and Type | Class and Description |
|---|---|
static class |
Files.ListFiles |
| Modifier and Type | Method and Description |
|---|---|
RestView<RevisionResource> |
list()
Create a view to list the contents of the collection.
|
FileResource |
parse(RevisionResource rev,
IdString id)
Parse a path component into a resource handle.
|
DynamicMap<RestView<FileResource>> |
views()
Get the views that support this collection.
|
public DynamicMap<RestView<FileResource>> views()
RestCollectionWithin a resource the views are accessed as RESOURCE/plugin~view.
views in interface RestCollection<RevisionResource,FileResource>public RestView<RevisionResource> list() throws AuthException
RestCollectionThe returned view should accept the parent type to scope the search, and may want to take a "q" parameter option to narrow the results.
list in interface RestCollection<RevisionResource,FileResource>AuthException - if the collection requires authentication.public FileResource parse(RevisionResource rev, IdString id)
RestCollectionparse in interface RestCollection<RevisionResource,FileResource>rev - the handle to the collection.id - string identifier supplied by the client. In a URL such as /changes/1234/abandon this string is "1234".