public class FileServlet extends GenericServlet
Constructor and Description |
---|
FileServlet() |
Modifier and Type | Method and Description |
---|---|
void |
init(ServletConfig conf)
Initialize the servlet.
|
void |
removeCacheEntry(java.lang.String uri)
Removes an entry from the cache
|
void |
service(ServletRequest request,
ServletResponse response)
Service a request.
|
void |
setCharacterEncoding(java.lang.String encoding)
Sets the character encoding.
|
void |
setEnableRange(boolean isEnable)
Flag to disable the "Range" header.
|
void |
setGenerateSession(boolean isGenerateSession)
Flag to generate sessions on requests.
|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log, toString
public void setCharacterEncoding(java.lang.String encoding)
public void setEnableRange(boolean isEnable)
public void setGenerateSession(boolean isGenerateSession)
public void removeCacheEntry(java.lang.String uri)
public void init(ServletConfig conf) throws ServletException
GenericServlet
init()
instead.init
in interface Servlet
init
in class GenericServlet
conf
- the servlet's configurationServletException
public void service(ServletRequest request, ServletResponse response) throws ServletException, java.io.IOException
Servlet
service
simultaneously. Normally,
req
and res
will actually be
HttpServletRequest
and HttpServletResponse
classes.request
- request information. Normally servlets will cast this
to HttpServletRequest
response
- response information. Normally servlets will cast this
to HttpServletRequest
ServletException
java.io.IOException