org.glassfish.jersey.examples.clipboard
Class ClipboardResource
java.lang.Object
org.glassfish.jersey.examples.clipboard.ClipboardResource
@Path(value="clipboard")
public class ClipboardResource
- extends java.lang.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
public Response content()
setContent
public void setContent(ClipboardData newContent)
append
public ClipboardData append(ClipboardData appendix)
clear
public void clear()
getHistory
@Path(value="history")
public java.util.List<java.lang.String> getHistory()
clearHistory
@Path(value="history")
public void clearHistory()
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.