Class XLReleaseStaticResource


  • @Path("/")
    @Controller
    public class XLReleaseStaticResource
    extends java.lang.Object
    Static web resources (images, stylesheets...) used by the Digital.ai Release UI.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      javax.ws.rs.core.Response getCss​(java.lang.String path)  
      javax.ws.rs.core.Response getEotFont​(java.lang.String path)  
      javax.ws.rs.core.Response getFavicon​(java.lang.String path)  
      javax.ws.rs.core.Response getGif​(java.lang.String path)  
      javax.ws.rs.core.Response getJpg​(java.lang.String path)  
      javax.ws.rs.core.Response getJs​(java.lang.String path, javax.servlet.http.HttpServletRequest request)  
      javax.ws.rs.core.Response getJsMap​(java.lang.String path)  
      javax.ws.rs.core.Response getJson​(java.lang.String path)  
      javax.ws.rs.core.Response getOtfFont​(java.lang.String path)  
      javax.ws.rs.core.Response getPng​(java.lang.String path)  
      javax.ws.rs.core.Response getRoot​(java.lang.String path)  
      javax.ws.rs.core.Response getSvg​(java.lang.String path)  
      javax.ws.rs.core.Response getTtfFont​(java.lang.String path)  
      javax.ws.rs.core.Response getWoff2Font​(java.lang.String path)  
      javax.ws.rs.core.Response getWoffFont​(java.lang.String path)  
      javax.ws.rs.core.Response redirectToRoot()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XLReleaseStaticResource

        public XLReleaseStaticResource()
    • Method Detail

      • redirectToRoot

        @GET
        @Produces("text/html;charset=UTF-8")
        public javax.ws.rs.core.Response redirectToRoot()
                                                 throws java.io.IOException
        Throws:
        java.io.IOException
      • getRoot

        @GET
        @Timed
        @Path("{path : static/.*\\.html}")
        @Produces("text/html;charset=UTF-8")
        public javax.ws.rs.core.Response getRoot​(@PathParam("path")
                                                 java.lang.String path)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • getOtfFont

        @GET
        @Timed
        @Path("{path : static/.*\\.otf}")
        @Produces("font/opentype")
        public javax.ws.rs.core.Response getOtfFont​(@PathParam("path")
                                                    java.lang.String path)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • getEotFont

        @GET
        @Timed
        @Path("{path : static/.*\\.eot}")
        @Produces("application/vnd.ms-fontobject")
        public javax.ws.rs.core.Response getEotFont​(@PathParam("path")
                                                    java.lang.String path)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • getWoffFont

        @GET
        @Timed
        @Path("{path : .*\\.woff}")
        @Produces("application/font-woff")
        public javax.ws.rs.core.Response getWoffFont​(@PathParam("path")
                                                     java.lang.String path)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • getWoff2Font

        @GET
        @Timed
        @Path("{path : .*\\.woff2}")
        @Produces("application/font-woff2")
        public javax.ws.rs.core.Response getWoff2Font​(@PathParam("path")
                                                      java.lang.String path)
                                               throws java.io.IOException
        Throws:
        java.io.IOException
      • getTtfFont

        @GET
        @Timed
        @Path("{path : static/.*\\.ttf}")
        @Produces("application/x-font-ttf")
        public javax.ws.rs.core.Response getTtfFont​(@PathParam("path")
                                                    java.lang.String path)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • getSvg

        @GET
        @Timed
        @Path("{path : static/.*\\.svg}")
        @Produces("image/svg+xml")
        public javax.ws.rs.core.Response getSvg​(@PathParam("path")
                                                java.lang.String path)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getPng

        @GET
        @Timed
        @Path("{path : static/.*\\.png}")
        @Produces("image/png")
        public javax.ws.rs.core.Response getPng​(@PathParam("path")
                                                java.lang.String path)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getGif

        @GET
        @Timed
        @Path("{path : static/.*\\.gif}")
        @Produces("image/gif")
        public javax.ws.rs.core.Response getGif​(@PathParam("path")
                                                java.lang.String path)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getJpg

        @GET
        @Timed
        @Path("{path : static/.*\\.jpg}")
        @Produces("image/jpg")
        public javax.ws.rs.core.Response getJpg​(@PathParam("path")
                                                java.lang.String path)
                                         throws java.io.IOException
        Throws:
        java.io.IOException
      • getFavicon

        @GET
        @Timed
        @Path("{path : static/.*\\.ico}")
        @Produces("image/x-icon")
        public javax.ws.rs.core.Response getFavicon​(@PathParam("path")
                                                    java.lang.String path)
                                             throws java.io.IOException
        Throws:
        java.io.IOException
      • getJsMap

        @GET
        @Timed
        @Path("{path : static/.*\\.map}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getJsMap​(@PathParam("path")
                                                  java.lang.String path)
                                           throws java.io.IOException
        Throws:
        java.io.IOException
      • getJson

        @GET
        @Timed
        @Path("{path : static/.*\\.json}")
        @Produces("application/json")
        public javax.ws.rs.core.Response getJson​(@PathParam("path")
                                                 java.lang.String path)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • getJs

        @GET
        @Timed
        @Path("{path : static/.*\\.js}")
        @Produces("application/javascript")
        public javax.ws.rs.core.Response getJs​(@PathParam("path")
                                               java.lang.String path,
                                               @Context
                                               javax.servlet.http.HttpServletRequest request)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • getCss

        @GET
        @Timed
        @Path("{path : static/.*\\.css}")
        @Produces("text/css")
        public javax.ws.rs.core.Response getCss​(@PathParam("path")
                                                java.lang.String path)
                                         throws java.io.IOException
        Throws:
        java.io.IOException