org.mycore.frontend.fileupload
Class MCRUploadServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.mycore.frontend.servlets.MCRServlet
org.mycore.frontend.fileupload.MCRUploadServlet
- All Implemented Interfaces:
- Serializable, Runnable, Servlet, ServletConfig
public final class MCRUploadServlet
- extends MCRServlet
- implements Runnable
This servlet implements the server side of communication with the upload
applet. The content of the uploaded files are handled by a MCRUploadHandler
subclass.
- Version:
- $Revision: 15202 $ $Date: 2009-05-15 17:00:44 +0200 (Fri, 15 May 2009) $
- Author:
- Frank Lützenkirchen, Harald Richter, Thomas Scheffler (yagee)
- See Also:
MCRUploadHandler,
Serialized Form
| Methods inherited from class org.mycore.frontend.servlets.MCRServlet |
buildRedirectURL, doGet, doGet, doPost, doPost, generateActiveLinkErrorpage, generateErrorPage, getBaseURL, getLastModified, getLayoutService, getProperty, getRemoteAddr, getServletBaseURL, getSession, handleException, initTrustedProxies, render, reportException, think |
serverIP
static String serverIP
serverPort
static int serverPort
server
static ServerSocket server
LOGGER
static Logger LOGGER
sessionIDs
static MCRCache sessionIDs
bufferSize
static final int bufferSize
- See Also:
- Constant Field Values
MCRUploadServlet
public MCRUploadServlet()
init
public void init()
throws ServletException
- Overrides:
init in class MCRServlet
- Throws:
ServletException
finalize
public void finalize()
throws Throwable
- Overrides:
finalize in class Object
- Throws:
Throwable
handleUpload
public void handleUpload(Socket socket)
run
public void run()
- Specified by:
run in interface Runnable
doGetPost
public void doGetPost(MCRServletJob job)
throws Exception
- Description copied from class:
MCRServlet
- This method should be overwritten by other servlets. As a default
response we indicate the HTTP 1.1 status code 501 (Not Implemented).
- Overrides:
doGetPost in class MCRServlet
- Throws:
Exception
invokeMethod
protected void invokeMethod(MCRServletJob job)
throws Exception
- Throws:
Exception
getFileName
protected String getFileName(String path)
sendException
protected void sendException(HttpServletResponse res,
Exception ex)
throws Exception
- Throws:
Exception
sendResponse
protected void sendResponse(HttpServletResponse res,
Object value)
throws Exception
- Throws:
Exception
sendResponse
protected void sendResponse(HttpServletResponse res,
String mime,
Map parameters)
throws Exception
- Throws:
Exception