org.glassfish.jersey.examples.jersey_ejb.resources
Class MessageBoardResourceBean
java.lang.Object
org.glassfish.jersey.examples.jersey_ejb.resources.MessageBoardResourceBean
public class MessageBoardResourceBean
- extends java.lang.Object
A stateless EJB bean to handle REST requests to the messages resource.
Messages are stored in the injected EJB singleton instance.
- Author:
- Pavel Bucek (pavel.bucek at oracle.com)
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MessageBoardResourceBean
public MessageBoardResourceBean()
getMessages
public java.util.List<Message> getMessages()
- Returns a list of all messages stored in the internal message holder.
addMessage
public Response addMessage(java.lang.String msg)
throws java.net.URISyntaxException
- Throws:
java.net.URISyntaxException
getMessage
@Path(value="{msgNum}")
public Message getMessage(int msgNum)
deleteMessage
@Path(value="{msgNum}")
public void deleteMessage(int msgNum)
throws NotFoundException
- Throws:
NotFoundException
Copyright © 2007-2012 Oracle Corporation. All Rights Reserved. Use is subject to license terms.