|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.servlet.GenericServlet
com.caucho.servlets.FileServlet
public class FileServlet
Serves static files. The cache headers are automatically set on these files.
| Constructor Summary | |
|---|---|
FileServlet()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class javax.servlet.GenericServlet |
|---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FileServlet()
| Method Detail |
|---|
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
GenericServletinit() instead.
init in interface Servletinit in class GenericServletconf - the servlet's configuration
ServletException
public void service(ServletRequest request,
ServletResponse response)
throws ServletException,
java.io.IOException
Servletservice simultaneously. Normally,
req and res will actually be
HttpServletRequest and HttpServletResponse
classes.
request - request information. Normally servlets will cast this
to HttpServletRequestresponse - response information. Normally servlets will cast this
to HttpServletRequest
ServletException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||