|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.exoplatform.services.ws.rest.samples.BookStorage
public class BookStorage
Simple service for REST demo.
| Constructor Summary | |
|---|---|
BookStorage()
Construct new instance of BookStorage. |
|
| Method Summary | |
|---|---|
void |
addBook(java.lang.String key,
Book book)
Add new Book in storage. |
Book |
getBook(java.lang.String key)
Get Book with specified key. |
int |
numberOfBooks()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BookStorage()
| Method Detail |
|---|
public Book getBook(java.lang.String key)
key - the key.
public void addBook(java.lang.String key,
Book book)
key - the key.book - the book.public int numberOfBooks()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||