Class StaticImageController
- java.lang.Object
-
- org.gcube.datatransfer.resolver.services.StaticImageController
-
@Path("img") public class StaticImageController extends ObjectThe Class StaticImageController.- Author:
- Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it May 2, 2024
-
-
Constructor Summary
Constructors Constructor Description StaticImageController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.ws.rs.core.StreamingOutputtoFileOut(javax.servlet.http.HttpServletRequest req)To file out.
-
-
-
Method Detail
-
toFileOut
@GET @Path("/{any: .*}") @Produces({"image/png","image/jpg","image/gif"}) public javax.ws.rs.core.StreamingOutput toFileOut(@Context javax.servlet.http.HttpServletRequest req) throws javax.ws.rs.WebApplicationExceptionTo file out.- Parameters:
req- the req- Returns:
- the streaming output
- Throws:
javax.ws.rs.WebApplicationException- the web application exception
-
-