|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.exoplatform.services.ws.rest.samples.JsonBookService
public class JsonBookService
Simple service for REST demo.
| Constructor Summary | |
|---|---|
JsonBookService(BookStorage books)
Constructs new instance of JsonBookService. |
|
| Method Summary | |
|---|---|
Response |
get(java.lang.String key)
Return request with JSON body which represent Book object. |
Response |
post(java.lang.String key,
java.lang.String baseURI,
Book book)
Create new Book in BookStorage with specified key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JsonBookService(BookStorage books)
books - BookStorage.| Method Detail |
|---|
public Response get(java.lang.String key)
key - the key.
Response .
public Response post(java.lang.String key,
java.lang.String baseURI,
Book book)
key - the key.baseURI - the base URL.book - Book.
Response .
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||