public class DirectoryResource extends AbstractJaxRSResource
Modifier and Type | Field and Description |
---|---|
protected FileService |
fileService |
acceptableMediaTypes, httpServletRequest, httpServletResponse, TEXT_HTML
Constructor and Description |
---|
DirectoryResource() |
DirectoryResource(javax.servlet.http.HttpServletResponse httpServletResponse) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createDirs(String pathId)
Creates a new folder with the specified name.
|
setHttpHeaders
protected FileService fileService
public DirectoryResource()
public DirectoryResource(javax.servlet.http.HttpServletResponse httpServletResponse)
public javax.ws.rs.core.Response createDirs(String pathId)
Example Request:
PUT pentaho/api/repo/dirs/home
PUT data:
This PUT body does not contain data.
pathId
- The path from the root folder to the root node of the tree to return using colon characters in
place of / or \ characters. To clarify /path/to/file, the encoded pathId would be :path:to:file.Example Response:
couldNotCreateFolderDuplicate
Copyright © 2019 Hitachi Vantara. All rights reserved.