@Path(value="/resource/") public interface ResourcesResource extends de.alpharogroup.service.rs.RestfulResource<Integer,de.alpharogroup.resource.system.domain.Resource>
ResourcesResource provides methods for resolving resources.| Modifier and Type | Method and Description |
|---|---|
Response |
download(String name)
Gets a
StreamingOutput from the given name of a Resource. |
Response |
downloadById(Integer id)
Gets a
StreamingOutput from the given id of a Resource. |
Response |
upload(org.apache.cxf.jaxrs.ext.multipart.Attachment attachment)
Uploads the given
Attachment object and saves it to the database. |
@GET @Path(value="/download/file/by/name/{name}/") @Produces(value="application/octet-stream") Response download(@PathParam(value="name") String name)
StreamingOutput from the given name of a Resource.name - the name@GET @Path(value="/download/file/by/id/{id}/") @Produces(value="application/octet-stream") Response downloadById(@PathParam(value="id") Integer id)
StreamingOutput from the given id of a Resource.id - the idCopyright © 2015–2017 Alpha Ro Group UG (haftungsbeschrÀngt). All rights reserved.