public abstract class OwAbstractUpload
extends javax.servlet.http.HttpServlet
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 and Description |
---|
OwAbstractUpload() |
Modifier and Type | Method and Description |
---|---|
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.
|
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
protected String createFileName(String defaultName, OwContentElement contentElement) throws Exception
defaultName
- String name to be used by defaultcontentElement
- OwContentElementException
- 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 responsejavax.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 responsejavax.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
- HttpServletResponsejavax.servlet.ServletException
IOException
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.