public class ListingEndpoints extends Object implements EndpointResource
Constructor and Description |
---|
ListingEndpoints(ContentFolder config) |
Modifier and Type | Method and Description |
---|---|
String |
feed() |
String |
listByDate(String year,
String month) |
String |
listByTag(String tag) |
String |
listHome() |
String |
listHome(Integer page) |
Map<String,Object> |
makeContext() |
static void |
register() |
String |
rss() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postRequest, preRequest
public ListingEndpoints(ContentFolder config)
public static void register()
@GET @Path(value="/") @Produces(value="text/html") public String listHome() throws Exception
Exception
@GET @Path(value="/page/:page/") @Produces(value="text/html") public String listHome(@PathParam(value="page") Integer page) throws Exception
Exception
@GET @Path(value="/feed/") @Produces(value="text/xml") public String feed() throws Exception
Exception
@GET @Path(value="/rss.xml") @Produces(value="text/xml") public String rss() throws Exception
Exception
@GET @Path(value="/archives/:year/:month/") public String listByDate(@PathParam(value="year") String year, @PathParam(value="month") String month) throws Exception
Exception
Copyright © 2016. All rights reserved.