org.jboss.seam.rest.examples.tasks.resource
Class CategoryCollectionResource
java.lang.Object
org.jboss.seam.rest.examples.tasks.resource.CategoryCollectionResource
@RequestScoped
@Named
public class CategoryCollectionResource
- extends Object
Collection resource for categories
- Author:
- Jozef Hartinger
|
Field Summary |
protected int |
limit
|
protected int |
start
|
protected javax.ws.rs.core.UriInfo |
uriInfo
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
start
@Min(value=0L,
message="start must be a non-negative number")
protected int start
limit
@Min(value=0L,
message="limit must be a non-negative number")
@Max(value=100L,
message="Cannot return more than 100 items")
protected int limit
uriInfo
@Context
protected javax.ws.rs.core.UriInfo uriInfo
CategoryCollectionResource
public CategoryCollectionResource()
getCategories
@ValidateRequest
@ResponseTemplate.List(value={@ResponseTemplate(value="/freemarker/categories.ftl",produces="application/categories+xml"),@ResponseTemplate(value="/freemarker/categories-short.ftl",produces="application/categories-short+xml")})
public List<Category> getCategories()
getStart
public int getStart()
getLimit
public int getLimit()
getUriInfo
public javax.ws.rs.core.UriInfo getUriInfo()
Copyright © 2011 Seam Framework. All Rights Reserved.