public class FileServlet
extends javax.servlet.http.HttpServlet
| Modifier and Type | Class and Description |
|---|---|
protected class |
FileServlet.Range
This class represents a byte range.
|
| Constructor and Description |
|---|
FileServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process GET request.
|
protected void |
doHead(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Process HEAD request.
|
protected void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean content) |
protected void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
File file,
boolean content)
Process the actual request.
|
doDelete, doOptions, doPost, doPut, doTrace, getLastModified, service, serviceprotected void doHead(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doHead in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionHttpServlet.doHead(HttpServletRequest, HttpServletResponse).protected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
doGet in class javax.servlet.http.HttpServletjavax.servlet.ServletExceptionIOExceptionHttpServlet.doGet(HttpServletRequest, HttpServletResponse).protected void processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
boolean content)
throws IOException
IOExceptionprotected void processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
File file,
boolean content)
throws IOException
request - The request to be processed.response - The response to be created.content - Whether the request body should be written (GET) or not (HEAD).IOException - If something fails at I/O level.Copyright © 2012-2018. All Rights Reserved.