net.ubisoa.push.test
Class PublisherResource

java.lang.Object
  extended by org.restlet.resource.UniformResource
      extended by org.restlet.resource.ServerResource
          extended by net.ubisoa.common.BaseResource
              extended by net.ubisoa.push.test.PublisherResource

public class PublisherResource
extends BaseResource

Author:
Edgardo Avilés-López

Constructor Summary
PublisherResource()
           
 
Method Summary
 void acceptItem(Representation entity)
           
 StringRepresentation items()
           
 Representation itemsAtom()
           
 org.restlet.ext.json.JsonRepresentation itemsJSON()
           
 org.restlet.ext.xml.DomRepresentation itemsXML()
           
 
Methods inherited from class net.ubisoa.common.BaseResource
doInit
 
Methods inherited from class org.restlet.resource.ServerResource
abort, commit, delete, delete, describeVariants, doConditionalHandle, doHandle, doHandle, doNegotiatedHandle, get, get, getInfo, getInfo, getOnSent, getPreferredVariant, getVariants, handle, head, head, isAnnotated, isAutoCommitting, isCommitted, isConditional, isExisting, isInRole, isNegotiated, options, options, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setAutoCommitting, setChallengeRequests, setCommitted, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setOnSent, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions
 
Methods inherited from class org.restlet.resource.UniformResource
doCatch, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getContext, getConverterService, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMaxForwards, getMetadataService, getMethod, getOriginalRef, getProtocol, getQuery, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestEntity, getResponse, getResponseAttributes, getResponseEntity, getRootRef, getServerInfo, getStatus, getStatusService, init, isConfidential, release, setRequest, setResponse, toObject, toRepresentation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PublisherResource

public PublisherResource()
Method Detail

items

@Get(value="html")
public StringRepresentation items()

itemsXML

@Get(value="xml")
public org.restlet.ext.xml.DomRepresentation itemsXML()

itemsAtom

@Get(value="atom")
public Representation itemsAtom()

itemsJSON

@Get(value="json")
public org.restlet.ext.json.JsonRepresentation itemsJSON()

acceptItem

@Post(value="form")
public void acceptItem(Representation entity)