public class AppResource
extends java.lang.Object
| Constructor and Description |
|---|
AppResource(StaticContentReader staticContentReader,
javax.ws.rs.core.UriInfo uriInfo) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
renderAppRoot() |
byte[] |
renderCSS() |
byte[] |
renderEOTs() |
byte[] |
renderGIFs() |
byte[] |
renderHtml() |
byte[] |
renderICOs() |
byte[] |
renderJavaScript() |
byte[] |
renderOTFs() |
byte[] |
renderPDFs() |
byte[] |
renderPNGs() |
byte[] |
renderSVGs() |
byte[] |
renderText() |
byte[] |
renderTTFs() |
byte[] |
renderWOFFs() |
public AppResource(StaticContentReader staticContentReader, javax.ws.rs.core.UriInfo uriInfo)
@GET @Produces(value="text/html") public byte[] renderAppRoot()
@GET
@Produces(value="image/png")
@Path(value="{resource: ([^\\s]+(\\.(?i)(png|PNG))$) }")
public byte[] renderPNGs()
throws java.lang.Exception
java.lang.Exception@GET
@Produces(value="image/gif")
@Path(value="{resource: ([^\\s]+(\\.(?i)(gif|GIF))$) }")
public byte[] renderGIFs()
throws java.lang.Exception
java.lang.Exception@GET
@Produces(value="text/plain")
@Path(value="{resource: ([^\\s]+(\\.(?i)(txt|TXT|text|TEXT))$) }")
public byte[] renderText()
throws java.lang.Exception
java.lang.Exception@GET
@Produces(value="text/html")
@Path(value="{resource: ([^\\s]+(\\.(?i)(html|HTML))$) }")
public byte[] renderHtml()
throws java.lang.Exception
java.lang.Exception@GET
@Produces(value="text/css")
@Path(value="{resource: ([^\\s]+(\\.(?i)(css|CSS))$) }")
public byte[] renderCSS()
throws java.lang.Exception
java.lang.Exception@GET
@Produces(value="application/javascript")
@Path(value="{resource: ([^\\s]+(\\.(?i)(js|JS))$) }")
public byte[] renderJavaScript()
throws java.lang.Exception
java.lang.Exception@GET
@Produces(value="image/icon")
@Path(value="{resource: ([^\\s]+(\\.(?i)(ico|ICO))$) }")
public byte[] renderICOs()
throws java.lang.Exception
java.lang.Exception@GET
@Produces(value="application/pdf")
@Path(value="{resource: ([^\\s]+(\\.(?i)(pdf|PDF))$) }")
public byte[] renderPDFs()
throws java.lang.Exception
java.lang.Exception@GET
@Produces(value="application/font-woff")
@Path(value="{resource: ([^\\s]+(\\.(?i)(otf|OTF))$) }")
public byte[] renderOTFs()
throws java.lang.Exception
java.lang.Exception@GET
@Produces(value="application/vnd.ms-fontobject")
@Path(value="{resource: ([^\\s]+(\\.(?i)(eot|EOT))$) }")
public byte[] renderEOTs()
throws java.lang.Exception
java.lang.Exception@GET
@Produces(value="image/svg+xml")
@Path(value="{resource: ([^\\s]+(\\.(?i)(svg|SVG))$) }")
public byte[] renderSVGs()
throws java.lang.Exception
java.lang.Exception@GET
@Produces(value="application/x-font-ttf")
@Path(value="{resource: ([^\\s]+(\\.(?i)(ttf|TTF))$) }")
public byte[] renderTTFs()
throws java.lang.Exception
java.lang.Exception@GET
@Produces(value="application/font-woff")
@Path(value="{resource: ([^\\s]+(\\.(?i)(woff|WOFF|woff2|WOFF2))$) }")
public byte[] renderWOFFs()
throws java.lang.Exception
java.lang.Exception