org.exoplatform.services.ws.rest.samples
Class XMLBookService

java.lang.Object
  extended by org.exoplatform.services.ws.rest.samples.XMLBookService
All Implemented Interfaces:
ResourceContainer

public class XMLBookService
extends java.lang.Object
implements ResourceContainer

Simple service for REST demo.

Version:
$Id: $
Author:
Andrey Parfonov

Constructor Summary
XMLBookService(BookStorage books)
          Constructs new instance of XMLBookService.
 
Method Summary
 Response get(java.lang.String key)
          Return request with XML body which represent Book object.
 Response get2(java.lang.String key)
          Return request with HTML body which represent Book object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLBookService

public XMLBookService(BookStorage books)
Constructs new instance of XMLBookService.

Parameters:
books - BookStorage.
Method Detail

get

public Response get(java.lang.String key)
Return request with XML body which represent Book object.

Parameters:
key - the key.
Returns:
@see Response .

get2

public Response get2(java.lang.String key)
Return request with HTML body which represent Book object.

Parameters:
key - the key.
Returns:
@see Response .


Copyright © 2010 eXo Platform SAS. All Rights Reserved.