@Path(value="/") public class StaticContent extends Object
Constructor and Description |
---|
StaticContent() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
startPage() |
javax.ws.rs.core.Response |
staticContent(String path) |
javax.ws.rs.core.Response |
staticPngContent(String path) |
@GET @Path(value="/") @Produces(value="text/html") public javax.ws.rs.core.Response startPage() throws IOException
IOException
@GET @Path(value="{path : .*\\.css|.*\\.js|.*\\.map}") @Produces(value="text/css;charset=UTF-8") public javax.ws.rs.core.Response staticContent(@PathParam(value="path") String path) throws IOException
IOException
@GET @Path(value="{path : .*\\.png}") @Produces(value="image/png") public javax.ws.rs.core.Response staticPngContent(@PathParam(value="path") String path) throws IOException
IOException
Copyright © 2018. All rights reserved.