org.exoplatform.services.ws.rest.simple
Class SimpleService

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

public class SimpleService
extends java.lang.Object
implements ResourceContainer

This service does not do real work, it useful to check rest-ejb connector.


Constructor Summary
SimpleService()
           
 
Method Summary
 Response delete()
          Delete data.
 Response get()
          Get actual data.
 Response post(java.lang.String data)
          Set data.
 Response put(java.lang.String data)
          Set data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleService

public SimpleService()
Method Detail

get

public Response get()
Get actual data.

Returns:
response with actual data as body or response with status 404 if data is null.

post

public Response post(java.lang.String data)
Set data.

Parameters:
data - the data.
Returns:
response with status 201.

put

public Response put(java.lang.String data)
Set data.

Parameters:
data - the data.
Returns:
response with status 201.

delete

public Response delete()
Delete data.

Returns:
response with status 204.


Copyright © 2012 eXo Platform SAS. All Rights Reserved.