Class StaticImageController


  • @Path("img")
    public class StaticImageController
    extends Object
    The Class StaticImageController.
    Author:
    Francesco Mangiacrapa at ISTI-CNR francesco.mangiacrapa@isti.cnr.it May 2, 2024
    • Constructor Detail

      • StaticImageController

        public StaticImageController()
    • 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.WebApplicationException
        To file out.
        Parameters:
        req - the req
        Returns:
        the streaming output
        Throws:
        javax.ws.rs.WebApplicationException - the web application exception