restgroupsServer
Class MessageUnicastResource

java.lang.Object
  extended by org.restlet.resource.UniformResource
      extended by org.restlet.resource.ServerResource
          extended by restgroupsServer.BaseResource
              extended by restgroupsServer.MessageUnicastResource

public class MessageUnicastResource
extends BaseResource

This class handles operations executed on the "/groups/{groupName}/mailbox/{guarantee}" resource. This resource is used to broadcast messages passed within the request body in the XML format to the members of the {groupName} group. The guarantee concerning the order of message delivery is specify by the {guarantee} parameter. The structure of the XML document is defined in the schemas/clientMessageSingleGroup.xsd schema file.

Author:
tkob

Field Summary
 
Fields inherited from class restgroupsServer.BaseResource
mySession
 
Constructor Summary
MessageUnicastResource()
           
 
Method Summary
 org.restlet.representation.Representation unicast(org.restlet.representation.Representation entity)
          Used for broadcasting the list of messages in the XML format passed as the argument to the group specified in the resource URI.
 
Methods inherited from class restgroupsServer.BaseResource
doInit, getFactory, getProfileEntities, getProfileEntitiesThreadIDs, getProfilesPilotEntities, getRequestSessionId, printProfileEntities, printProfilesPilotEntities, setResponseSessionId
 
Methods inherited from class org.restlet.resource.ServerResource
delete, delete, describeVariants, doConditionalHandle, doHandle, doHandle, doNegotiatedHandle, get, get, getConverterService, getInfo, getInfo, getMetadataService, getPreferredVariant, getVariants, handle, head, head, isAnnotated, isConditional, isExisting, isInRole, isNegotiated, options, options, post, post, put, put, redirectPermanent, redirectPermanent, redirectSeeOther, redirectSeeOther, redirectTemporary, redirectTemporary, setAllowedMethods, setAnnotated, setChallengeRequests, setConditional, setCookieSettings, setDimensions, setExisting, setLocationRef, setLocationRef, setNegotiated, setServerInfo, setStatus, setStatus, setStatus, setStatus, updateAllowedMethods, updateDimensions
 
Methods inherited from class org.restlet.resource.UniformResource
doCatch, doRelease, getAllowedMethods, getApplication, getChallengeRequests, getChallengeResponse, getClientInfo, getConditions, getContext, getCookies, getCookieSettings, getDimensions, getHostRef, getLocationRef, getLogger, getMatrix, getMethod, getOriginalRef, getProtocol, getQuery, getRanges, getReference, getReferrerRef, getRequest, getRequestAttributes, getRequestEntity, getResponse, getResponseAttributes, getResponseEntity, getRootRef, getServerInfo, getStatus, init, isConfidential, release
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageUnicastResource

public MessageUnicastResource()
Method Detail

unicast

@Post
public org.restlet.representation.Representation unicast(org.restlet.representation.Representation entity)
Used for broadcasting the list of messages in the XML format passed as the argument to the group specified in the resource URI.

If body of the request is incorrect, the "invalidRequestBody" error is returned.

Parameters:
entity - list of messages in the XML format
Returns:
status