@Path(value="/api") @Produces(value="application/json") public class ApiResource extends FileResource
filePath| Constructor and Description |
|---|
ApiResource()
The file path for uploads
|
ApiResource(String filePath)
The file path for uploads
|
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
coords() |
void |
handleUpload(File path) |
void |
setPath(String path) |
javax.ws.rs.core.Response |
update(UrlResource resource) |
serve, uploadFilepublic ApiResource(String filePath)
filePath - the file path for uploadspublic ApiResource()
@POST @Path(value="/update") @Produces(value="application/json") public javax.ws.rs.core.Response update(UrlResource resource) throws IOException
IOException@GET @Path(value="/coords") public javax.ws.rs.core.Response coords()
public void setPath(String path) throws IOException
IOExceptionpublic void handleUpload(File path)
handleUpload in class FileResourceCopyright © 2015. All Rights Reserved.