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, service
public void init()
init
in class javax.servlet.GenericServlet
public long getLastModified(javax.servlet.http.HttpServletRequest req)
getLastModified
in class javax.servlet.http.HttpServlet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
doGet
in class javax.servlet.http.HttpServlet
public static java.lang.String readFileAsString(java.io.File file) throws java.io.IOException
java.io.IOException
public static java.lang.String readFileAsString(java.lang.String pathname) throws java.io.IOException
java.io.IOException