org.jboss.seam.rest.example.tasks.resource
Class CategoryCollectionResource

java.lang.Object
  extended by org.jboss.seam.rest.example.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  UriInfo uriInfo
           
 
Constructor Summary
CategoryCollectionResource()
           
 
Method Summary
 List<Category> getCategories()
           
 int getLimit()
           
 int getStart()
           
 UriInfo getUriInfo()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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 UriInfo uriInfo
Constructor Detail

CategoryCollectionResource

public CategoryCollectionResource()
Method Detail

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 UriInfo getUriInfo()


Copyright © 2011 Seam Framework. All Rights Reserved.