Package nl.b3p.commons.services
Class FileManagerServlet
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- nl.b3p.commons.services.FileManagerServlet
-
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
public class FileManagerServlet extends javax.servlet.http.HttpServlet
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
FileManagerServlet.FetchMethod
-
Field Summary
Fields Modifier and Type Field Description protected int
directoryKeepDepth
protected String
displayMethod
protected FileManagerServlet.FetchMethod
fetchMethod
protected String
fileParam
protected String
locationPrefix
-
Constructor Summary
Constructors Constructor Description FileManagerServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
checkGetLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected void
checkPostLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected static String
createBaseUrl(javax.servlet.http.HttpServletRequest request)
protected void
doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
protected void
doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
void
init(javax.servlet.ServletConfig config)
-
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
-
-
-
-
Field Detail
-
locationPrefix
protected String locationPrefix
-
fileParam
protected String fileParam
-
directoryKeepDepth
protected int directoryKeepDepth
-
fetchMethod
protected FileManagerServlet.FetchMethod fetchMethod
-
displayMethod
protected String displayMethod
-
-
Method Detail
-
init
public void init(javax.servlet.ServletConfig config) throws javax.servlet.ServletException
- Specified by:
init
in interfacejavax.servlet.Servlet
- Overrides:
init
in classjavax.servlet.GenericServlet
- Throws:
javax.servlet.ServletException
-
checkPostLogin
protected void checkPostLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
doPost
protected void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws javax.servlet.ServletException, IOException
- Overrides:
doPost
in classjavax.servlet.http.HttpServlet
- Throws:
javax.servlet.ServletException
IOException
-
checkGetLogin
protected void checkGetLogin(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws Exception
- Throws:
Exception
-
doGet
protected void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException
- Overrides:
doGet
in classjavax.servlet.http.HttpServlet
- Throws:
IOException
-
createBaseUrl
protected static String createBaseUrl(javax.servlet.http.HttpServletRequest request)
-
-