public class DocServlet
extends javax.servlet.http.HttpServlet
| Constructor and Description |
|---|
DocServlet() |
| Modifier and Type | Method and Description |
|---|---|
void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
long |
getLastModified(javax.servlet.http.HttpServletRequest req) |
void |
init() |
static java.lang.String |
readFileAsString(java.io.File file) |
static java.lang.String |
readFileAsString(java.lang.String pathname) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, service, servicepublic void init()
init in class javax.servlet.GenericServletpublic long getLastModified(javax.servlet.http.HttpServletRequest req)
getLastModified in class javax.servlet.http.HttpServletpublic void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
doGet in class javax.servlet.http.HttpServletpublic static java.lang.String readFileAsString(java.io.File file)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String readFileAsString(java.lang.String pathname)
throws java.io.IOException
java.io.IOException