public class StaticContentHandler extends Object implements RequestHandler
RequestHandler
responsible for serving static resources.Site
(see SiteProperties.DOCUMENT_DIR
and
Path.isDocument()
).FORWARDED
Constructor and Description |
---|
StaticContentHandler(Controller controller) |
Modifier and Type | Method and Description |
---|---|
void |
handle(HttpServletRequest servletRequest,
HttpServletResponse servletResponse,
Environment environment,
Site site,
PathInfo pathInfo)
Handles the given
HttpServletRequest , |
public StaticContentHandler(Controller controller)
public void handle(HttpServletRequest servletRequest, HttpServletResponse servletResponse, Environment environment, Site site, PathInfo pathInfo) throws ServletException, IOException
RequestHandler
HttpServletRequest
,handle
in interface RequestHandler
servletRequest
- the current HttpServletRequest
servletResponse
- the current HttpServletResponse
environment
- the current Environment
site
- the current Site
pathInfo
- the current PathInfo
ServletException
- if a servlet-specific error occursIOException
- if a resource could not be foundCopyright © 2011–2017 aiticon GmbH. All rights reserved.