Class

atg.servlet.FileServlet

Component

/atg/dynamo/servlet/pipeline/FileServlet (DAS)

FileServlet handles a request by writing the file specified by the pathTranslated property of the request to the servlet output stream of the response. The servlet also sets the MIME type of the response, which means that the MIME type must be available as an attribute from MimeTyperServlet. Requests for files that require no compilation, such as images, use this servlet. Like other servlets that handle rendering of a file, when this servlet is part of the request-handling pipeline, it’s the last servlet.

This servlet uses a file cache (atg.service.filecache.FileCache) to store the files that it has read from disk, so that subsequent accesses for those files can be delivered directly from memory instead of being read from disk.

 
loading table of contents...