com.silverpeas.rssAgregator.web
Class RSSResource

java.lang.Object
  extended by com.silverpeas.web.RESTWebService
      extended by com.silverpeas.rssAgregator.web.RSSResource

@Service
@RequestScoped
@Authorized
public class RSSResource
extends com.silverpeas.web.RESTWebService


Nested Class Summary
 
Nested classes/interfaces inherited from class com.silverpeas.web.RESTWebService
com.silverpeas.web.RESTWebService.WebProcess<RETURN_VALUE>, com.silverpeas.web.RESTWebService.WebTreatment<RETURN_VALUE>
 
Field Summary
protected  String componentId
           
 
Fields inherited from class com.silverpeas.web.RESTWebService
RESPONSE_HEADER_ARRAYSIZE, REST_WEB_SERVICES_URI_BASE
 
Constructor Summary
RSSResource()
           
 
Method Summary
 String getComponentId()
           
 List<RSSItem> getRSS(String agregate)
          Gets the JSON representation of the specified existing channel.
 
Methods inherited from class com.silverpeas.web.RESTWebService
getBundle, getBundleLocation, getGreaterUserRole, getHttpRequest, getHttpServletRequest, getHttpServletResponse, getOrganisationController, getUriInfo, getUserDetail, getUserPreferences, getUserRoles, process, validateUserAuthentication, validateUserAuthorization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

componentId

protected String componentId
Constructor Detail

RSSResource

public RSSResource()
Method Detail

getComponentId

public String getComponentId()
Specified by:
getComponentId in class com.silverpeas.web.RESTWebService

getRSS

public List<RSSItem> getRSS(String agregate)
Gets the JSON representation of the specified existing channel.
If the channel doesn't exist, a 404 HTTP code is returned.
If the user isn't authentified, a 401 HTTP code is returned.
If the user isn't authorized to access the channel, a 403 is returned.
If a problem occurs when processing the request, a 503 HTTP code is returned.

Parameters:
agregate - String option to specify if we agregate channels items sorting them by date or not.
It means URI has the following parameter : agregate=y or agregate=n
Returns:
the response to the HTTP GET request with the JSON representation of the asked channel items.


Copyright © 2016 Silverpeas. All Rights Reserved.