|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
com.wewebu.ow.server.servlets.OwAbstractUpload
public abstract class OwAbstractUpload
Abstract HttpServlet which provides helper methods to handle file name for upload process.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Constructor Summary | |
---|---|
OwAbstractUpload()
|
Method Summary | |
---|---|
protected String |
createFileName(String defaultName,
OwContentElement contentElement)
Return the name which should be used in content disposition header. |
protected void |
doGet(javax.servlet.http.HttpServletRequest request_p,
javax.servlet.http.HttpServletResponse response_p)
Handles the HTTP GET method. |
protected void |
doPost(javax.servlet.http.HttpServletRequest request_p,
javax.servlet.http.HttpServletResponse response_p)
Handles the HTTP POST method. |
protected abstract void |
processRequest(javax.servlet.http.HttpServletRequest request_p,
javax.servlet.http.HttpServletResponse response_p)
Main method to be implemented for upload of content to the client, this method is a delegation from GET and POST requests. |
Methods inherited from class javax.servlet.http.HttpServlet |
---|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service |
Methods inherited from class javax.servlet.GenericServlet |
---|
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, init, log, log |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OwAbstractUpload()
Method Detail |
---|
protected String createFileName(String defaultName, OwContentElement contentElement) throws Exception
defaultName
- String name to be used by defaultcontentElement
- OwContentElement
Exception
- if could not retrieve information form provided content elementprotected void doGet(javax.servlet.http.HttpServletRequest request_p, javax.servlet.http.HttpServletResponse response_p) throws javax.servlet.ServletException, IOException
GET
method.
doGet
in class javax.servlet.http.HttpServlet
request_p
- servlet requestresponse_p
- servlet response
javax.servlet.ServletException
IOException
protected void doPost(javax.servlet.http.HttpServletRequest request_p, javax.servlet.http.HttpServletResponse response_p) throws javax.servlet.ServletException, IOException
POST
method.
doPost
in class javax.servlet.http.HttpServlet
request_p
- servlet requestresponse_p
- servlet response
javax.servlet.ServletException
IOException
protected abstract void processRequest(javax.servlet.http.HttpServletRequest request_p, javax.servlet.http.HttpServletResponse response_p) throws javax.servlet.ServletException, IOException
request_p
- HttpServletRequestresponse_p
- HttpServletResponse
javax.servlet.ServletException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |