@Path(value="/box") @ApplicationScoped public class BoxResource extends Object
| Modifier and Type | Field and Description |
|---|---|
(package private) org.apache.camel.ProducerTemplate |
producerTemplate |
| Constructor and Description |
|---|
BoxResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
deleteFile(String fileId) |
javax.ws.rs.core.Response |
downloadFile(String fileId) |
javax.ws.rs.core.Response |
uploadFile(String content,
String parentFolder,
String name) |
@Path(value="/uploadFile/{parentFolder}/{name}")
@POST
@Consumes(value="text/plain")
@Produces(value="text/plain")
public javax.ws.rs.core.Response uploadFile(String content,
@PathParam(value="parentFolder")
String parentFolder,
@PathParam(value="name")
String name)
throws Exception
Exception@Path(value="/downloadFile") @GET @Consumes(value="text/plain") @Produces(value="text/plain") public javax.ws.rs.core.Response downloadFile(String fileId) throws Exception
ExceptionCopyright © 2019–2020 The Apache Software Foundation. All rights reserved.