|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.restlet.resource.Resource
org.linkedin.glu.agent.rest.resources.BaseResource
org.linkedin.glu.agent.rest.resources.TagsResource
class TagsResource extends BaseResource
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 | |
---|---|
getAgent, getPath, getResourceMountPoint, noException, toArgs, toArgs, toRepresentation |
Field Detail |
---|
public static final TagsSerializer TAGS_SERIALIZER
Constructor Detail |
---|
TagsResource(Context context, Request request, Response response)
Method Detail |
---|
void acceptRepresentation(Representation representation)
boolean allowDelete()
boolean allowGet()
boolean allowPost()
boolean allowPut()
void removeRepresentations()
Representation represent(Variant variant)
void storeRepresentation(Representation representation)
Groovy Documentation