ASL HTTP ContentAccess
The ASL HTTP ContentAccess component is part of the HTTP Front End Framework and provides aggregated functionality for accessing gCube content. It follows the all the framework principles for data interchange formats, error handling, and context management, supporting both JSON and XML, using the common framework utilities for user authentication and HTTP error responses, supporting all authentication modes and following the suggested design patterns for scope management and session management as well as coding guidelines. The features provided are listed as follows:
Contents
retrieval of information about content
retrieval of content
A client is able to retrieve gCube content by submitting an HTTP GET request to the ContentViewer servlet of the ContentAccess set of services. Through the Content Viewer it is possible to retrieve content not only for main gCube documents but also for any other type of elements in the system, including annotations, metadata, parts and alternative representations. In case of none main documents, a supplement parameter must be added to the request, indicating the element type. The client can also optionally choose whether to save or not the content by using the "save" parameter. The content is rendered by the servlet with mime type, name and length information filled in the HTTP response.