public class FileServlet extends StaticResourceServlet
Servlet for serving files by jPALIO. A directory of static content can be specified by initial param basePath
. If not
specified, the default value will be used. Default directory path for static content is static
in base directory of jPALIO
context.
StaticResourceServlet
,
StaticResource
StaticResourceServlet.StaticResource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PARAM_BASE_PATH
Base path for static content parameter
|
serveNotFound
Constructor and Description |
---|
FileServlet() |
Modifier and Type | Method and Description |
---|---|
protected StaticResourceServlet.StaticResource |
getStaticResource(HttpServletRequest request,
HttpServletResponse response)
Gets static resource from any source (file system, database) based on given request.
|
void |
init() |
doGet, doHead, doPost
public static final java.lang.String PARAM_BASE_PATH
public void init() throws ServletException
ServletException
protected StaticResourceServlet.StaticResource getStaticResource(HttpServletRequest request, HttpServletResponse response)
getStaticResource
in class StaticResourceServlet
request
- Request