Oct 15 2009
Archive for October, 2009
Oct 15 2009
Custom PuTTY Color Themes – igvita.com
Oct 06 2009
Returning List in JAXB
I was trying to figure out how to return a list in a response in JAXB. The answer was here
Here’s a code snip
@GET
public Response getProducts(@QueryParam("active")String active,@QueryParam("family")String family,@Context UriInfo ui) {
Response r = null;
try {
List
if (products.size() == 0) {
r = Response.status(404).build();
} else {
GenericEntity> genericProducts = new GenericEntity
>(products) {};
r = Response.ok().entity(genericProducts).build();
}
} catch (Exception e) {
throwInternalServerError(e);
}
return r;
}
Oct 06 2009










