org.glassfish.jersey.examples.jsonp.resource
Class DocumentResource
java.lang.Object
org.glassfish.jersey.examples.jsonp.resource.DocumentResource
@Path(value="document")
@Consumes(value="application/json")
@Produces(value="application/json")
public class DocumentResource
- extends Object
Document Resource.
- Author:
- Michal Gajdos (michal.gajdos at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DocumentResource
public DocumentResource()
getAll
@GET
public javax.json.JsonArray getAll()
get
@GET
@Path(value="{id: \\d+}")
public javax.json.JsonObject get(@PathParam(value="id")
int id)
remove
@DELETE
@Path(value="{id: \\d+}")
public javax.json.JsonObject remove(@PathParam(value="id")
int id)
removeAll
@DELETE
public void removeAll()
store
@POST
public javax.json.JsonArray store(javax.json.JsonObject document)
store
@POST
@Path(value="multiple")
public javax.json.JsonArray store(javax.json.JsonArray documents)
getFilteringResource
@Path(value="filter")
public Class<DocumentFilteringResource> getFilteringResource()
Copyright © 2007-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.