class TextFileServlet
extends javax.servlet.http.HttpServlet
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
fileName |
private static long |
serialVersionUID |
Constructor and Description |
---|
TextFileServlet(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
doGet(javax.servlet.http.HttpServletRequest req,
javax.servlet.http.HttpServletResponse rsp) |
private byte[] |
read(javax.servlet.http.HttpServletRequest req) |
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
private static final long serialVersionUID
private final java.lang.String fileName
public void doGet(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse rsp) throws java.io.IOException
doGet
in class javax.servlet.http.HttpServlet
java.io.IOException
private byte[] read(javax.servlet.http.HttpServletRequest req) throws java.io.IOException
java.io.IOException