File serving

 

File serving

File serving allows a Web application to serve static file types, such as HTML. File-serving attributes are used by the servlet that implements file-serving behavior.

This behavior is implemented by setting the fileservingenabled property to true when configuring the Web module.

Example attributes:

bufferSize

Sets buffer size that is used for serving static files.

extendedDocumentRoot

Path that specifies the directory where static files are sent. Use this attribute in addition to the contextRoot attribute.

file.serving.patterns.allow

That only files matching the specified pattern are served.

file.serving.patterns.deny

That files that match the specified file pattern are denied



Related reference
Web applications: Resources for learning