public class GetServiceFileSecureServlet extends GetServiceFileServlet
FILE| Constructor and Description |
|---|
GetServiceFileSecureServlet() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createFileUrl(javax.servlet.http.HttpServletRequest request,
File f)
Create file url with code
|
protected void |
doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP
GET method. |
protected void |
doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Handles the HTTP
POST method. |
String |
getServletInfo()
Returns a short description of the servlet.
|
void |
init(javax.servlet.ServletConfig config) |
static void |
main(String[] args)
Helper to create coded getters
|
protected void |
processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Processes requests for both HTTP
GET and POST methods. |
getCorrectedFile, writeErrorMessage, writeFile, writeFileNotFoundMessage, writeFileToHtmldoDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, servicepublic void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class GetServiceFileServletjavax.servlet.ServletExceptionprotected void processRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException,
UnsupportedEncodingException
GET and POST methods.processRequest in class GetServiceFileServletrequest - servlet requestresponse - servlet responsejavax.servlet.ServletException - if a servlet-specific error occursIOException - if an I/O error occursUnsupportedEncodingExceptionprotected void doGet(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
GET method.doGet in class GetServiceFileServletrequest - servlet requestresponse - servlet responsejavax.servlet.ServletException - if a servlet-specific error occursIOException - if an I/O error occursprotected void doPost(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws javax.servlet.ServletException,
IOException
POST method.doPost in class GetServiceFileServletrequest - servlet requestresponse - servlet responsejavax.servlet.ServletException - if a servlet-specific error occursIOException - if an I/O error occurspublic String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class GetServiceFileServletpublic static void main(String[] args) throws NoSuchAlgorithmException, UnsupportedEncodingException, IOException
protected String createFileUrl(javax.servlet.http.HttpServletRequest request, File f)
createFileUrl in class GetServiceFileServletCopyright © 2015. All rights reserved.