org.glassfish.jersey.examples.clipboard
Class ClipboardResource
java.lang.Object
org.glassfish.jersey.examples.clipboard.ClipboardResource
@Path(value="clipboard")
public class ClipboardResource
- extends Object
Very basic resource example showcases CRUD functionality
implemented via HTTP POST, GET, PUT and DELETE methods.
A simple clipboard is simulated which is capable of handling
text data only.
- Author:
- Marek Potociar (marek.potociar at oracle.com), Jakub Podlesak (jakub.podlesak at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ClipboardResource
public ClipboardResource()
content
@GET
public javax.ws.rs.core.Response content()
setContent
@PUT
@Consumes(value={"text/plain","application/json"})
public void setContent(ClipboardData newContent)
append
@POST
@Consumes(value={"text/plain","application/json"})
@Produces(value={"text/plain","application/json"})
public ClipboardData append(ClipboardData appendix)
clear
@DELETE
public void clear()
getHistory
@GET
@Path(value="history")
@Produces(value={"text/plain","application/json"})
public List<String> getHistory()
clearHistory
@DELETE
@Path(value="history")
public void clearHistory()
Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.