org.exoplatform.social.service.rest
Class AppsRestService

java.lang.Object
  extended by org.exoplatform.social.service.rest.AppsRestService
All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer

public class AppsRestService
extends Object
implements org.exoplatform.services.rest.resource.ResourceContainer

AppsRestService.java
Provides rest services for application registry gadget: shows application list.
GET: /{restContextName}/social/apps/show.{format}
ex: GET: http://localhost:8080/rest/social/apps/show.json

Since:
Jan 6, 2010

Nested Class Summary
static class AppsRestService.App
          Describes an Application entity from application registry service of portal.
This class is needed as a model for converter of the rest service.
static class AppsRestService.AppList
          List that contains applications from application registry service of portal
This class is needed as a model for converter of the rest service.
 
Constructor Summary
AppsRestService()
          constructor
 
Method Summary
 javax.ws.rs.core.Response showApps(javax.ws.rs.core.UriInfo uriInfo, String format)
          shows apps by json/xml format:
GET: /{restContextName}/social/apps/show.{format}
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AppsRestService

public AppsRestService()
constructor

Method Detail

showApps

public javax.ws.rs.core.Response showApps(@Context
                                          javax.ws.rs.core.UriInfo uriInfo,
                                          String format)
                                   throws Exception
shows apps by json/xml format:
GET: /{restContextName}/social/apps/show.{format}

Parameters:
uriInfo - The request URI information.
format - The type of returned result.
Returns:
The response contains returned result.
Throws:
Exception


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.