public class MessageBoardResourceBean extends Object
| Constructor and Description |
|---|
MessageBoardResourceBean() |
| Modifier and Type | Method and Description |
|---|---|
Response |
addMessage(String msg) |
void |
deleteMessage(int msgNum) |
Message |
getMessage(int msgNum) |
List<Message> |
getMessages()
Returns a list of all messages stored in the internal message holder.
|
@GET public List<Message> getMessages()
@POST public Response addMessage(String msg) throws URISyntaxException
URISyntaxException@Path(value="{msgNum}") @GET public Message getMessage(@PathParam(value="msgNum") int msgNum)
@Path(value="{msgNum}") @DELETE public void deleteMessage(@PathParam(value="msgNum") int msgNum) throws CustomNotFoundException
CustomNotFoundExceptionCopyright © 2007-2019, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.