Getting ready

Let's just brush up on our knowledge of web script building blocks and identify the components that need to be created for this web script as follows:

  • Each web script needs to have a description document. So, the first step is to create a web script description document.
  • The web script needs to return a response in the XML and JSON formats, so it is necessary to provide the response template to render an XML response and a response template to render a JSON response.
  • The entire logic to get the filesystem location and size will reside in the web script controller. In this case, a Java-backed web script controller needs to be created for business logic processing.
  • In order to register a Java-backed controller with the web script, a spring ...

Get Learning Alfresco Web Scripts now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.