Groovy Documentation

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

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

class BaseResource
extends Resource

Base class for resources to the agent

Authors:
ypujante@linkedin.com


Field Summary
static java.lang.String MODULE

static java.lang.Object log

 
Constructor Summary
BaseResource(Context context, Request request, Response response)

 
Method Summary
Agent getAgent()

protected java.lang.String getPath()

java.lang.String getResourceMountPoint()

protected T noException(groovy.lang.Closure closure)

static java.lang.Object toArgs(Representation representation)

static java.lang.Object toArgs(Form form)

static java.lang.Object toRepresentation(java.lang.Object res)

 

Field Detail

MODULE

public static final java.lang.String MODULE


log

public static final java.lang.Object log


 
Constructor Detail

BaseResource

BaseResource(Context context, Request request, Response response)


 
Method Detail

getAgent

Agent getAgent()


getPath

protected java.lang.String getPath()


getResourceMountPoint

java.lang.String getResourceMountPoint()


noException

protected T noException(groovy.lang.Closure closure)


toArgs

static java.lang.Object toArgs(Representation representation)


toArgs

static java.lang.Object toArgs(Form form)


toRepresentation

static java.lang.Object toRepresentation(java.lang.Object res)


 

Groovy Documentation