Groovy Documentation

org.linkedin.glu.agent.rest.resources
[Groovy] Class TagsResource

java.lang.Object
  org.restlet.resource.Resource
      org.linkedin.glu.agent.rest.resources.BaseResource
          org.linkedin.glu.agent.rest.resources.TagsResource

class TagsResource
extends BaseResource

Authors:
yan@pongasoft.com


Field Summary
static TagsSerializer TAGS_SERIALIZER

 
Fields inherited from class BaseResource
MODULE, log
 
Constructor Summary
TagsResource(Context context, Request request, Response response)

 
Method Summary
void acceptRepresentation(Representation representation)

POST add tags (ex: POST /tags/fruit;vegetable)

boolean allowDelete()

boolean allowGet()

boolean allowPost()

boolean allowPut()

void removeRepresentations()

DELETE remove tags (ex: DELETE /tags/fruit;vegetable)

Representation represent(Variant variant)

GET: /tags => 200: json array of tags HEAD: /tags => 200 if has tags, 204 otherwise (only match=any makes sense here...)

void storeRepresentation(Representation representation)

PUT set tags (ex: PUT /tags/fruit;vegetable)

 
Methods inherited from class BaseResource
addResponseHeader, getAgent, getPath, getRequestArgs, getResourceMountPoint, noException, toArgs, toArgs, toRepresentation
 

Field Detail

TAGS_SERIALIZER

public static final TagsSerializer TAGS_SERIALIZER


 
Constructor Detail

TagsResource

TagsResource(Context context, Request request, Response response)


 
Method Detail

acceptRepresentation

void acceptRepresentation(Representation representation)
POST add tags (ex: POST /tags/fruit;vegetable)


allowDelete

boolean allowDelete()


allowGet

boolean allowGet()


allowPost

boolean allowPost()


allowPut

boolean allowPut()


removeRepresentations

void removeRepresentations()
DELETE remove tags (ex: DELETE /tags/fruit;vegetable)


represent

Representation represent(Variant variant)
GET: /tags => 200: json array of tags HEAD: /tags => 200 if has tags, 204 otherwise (only match=any makes sense here...) HEAD: /tags/fruit;vegetable?match=all => 200 if matches, 204 if does not match query string can contain: match=any (default if missing) or match=all for matching on all of them


storeRepresentation

void storeRepresentation(Representation representation)
PUT set tags (ex: PUT /tags/fruit;vegetable)


 

Groovy Documentation