Groovy Documentation

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

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

class FileResource
extends BaseResource

Handles resources of type files (tail / ls)

Authors:
ypujante@linkedin.com


Field Summary
 
Fields inherited from class BaseResource
MODULE, log
 
Method Summary
Representation getFileContent()

GET: get the content of the file/directory

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

Method Detail

getFileContent

@Get
Representation getFileContent()
GET: get the content of the file/directory


 

Groovy Documentation