Class UploadContentServlet
java.lang.Object
javax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.eclnt.jsfserver.util.CCServletBase
org.eclnt.jsfserver.util.CCServletBaseWithContextMgmt
org.eclnt.jsfserver.bufferedcontent.UploadContentServlet
- All Implemented Interfaces:
Serializable
,javax.servlet.Servlet
,javax.servlet.ServletConfig
,ICCServerConstants
- See Also:
-
Field Summary
Fields inherited from interface org.eclnt.jsfserver.util.ICCServerConstants
CLIENTJAVATYPE_FX, CLIENTJAVATYPE_SWING, CLIENTTYPE_APPLET, CLIENTTYPE_APPLICATION, CLIENTTYPE_BROWSER, CLIENTTYPE_RISC, CLIENTTYPE_UI5, CLIENTTYPE_WEBSTART, EXPLICIT_NULL, FOCUSSEQUENCE_FIX_PREFIX, HEADER_ATTRIBUTE_CLIENT, HEADER_ATTRIBUTE_CLIENTJAVATYPE, HEADER_ATTRIBUTE_COOKIESENABLED, HEADER_ATTRIBUTE_COUNTRY, HEADER_ATTRIBUTE_DEVICESCREENHEIGHT, HEADER_ATTRIBUTE_DEVICESCREENWIDTH, HEADER_ATTRIBUTE_DEVICETYPE, HEADER_ATTRIBUTE_LANGUAGE, HEADER_ATTRIBUTE_MEDIADEVICES, HEADER_ATTRIBUTE_ORIGINALURL, HEADER_ATTRIBUTE_PERFORMANCEDATA, HEADER_ATTRIBUTE_REQUESTID, HEADER_ATTRIBUTE_TIMEZONEOFFSET, HEADER_ATTRIBUTE_USERAGENT, HEADER_ATTRIBUTE_XFRAMEOPTIONS, HEADER_RESPONSE_ATTRIBUTE_HTTPSESSIONID, HEADER_RESPONSE_ATTRIBUTE_HTTPSESSIONREFERENCEURL, HEADER_RESPONSE_ATTRIBUTE_HTTPSESSIONTRACKINGMODE, HEADER_RESPONSE_ATTRIBUTE_OVERRIDE, HEADER_RESPONSE_ATTRIBUTE_RELOAD, HEADER_RESPONSE_ATTRIBUTE_STYLE, INPUTMASK_VALUEMODE_WITHMASK, INPUTMASK_VALUEMODE_WITHOUTMASK, LAYOUTEXTENSION_JSP, LAYOUTEXTENSION_XML, QP_CCSTYLE, QP_KEEPDIALOGSESSION, QP_SUBPAGEID, SECURITY_ROLE_CCADMIN, SESSION_TRACKING_COOKIE, SESSION_TRACKING_URL, TEXTPANE_CONTENTTYPE_HTML, TEXTPANE_CONTENTTYPE_PLAIN
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
checkIfToAbortOnMissingHttpSession
(javax.servlet.http.HttpServletRequest req) static void
clear
(javax.servlet.http.HttpSession session) Clear complete content of temp files.protected void
processRequest
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) protected void
processUI5Upload
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, IUploadContent uploadContent) protected void
processUploadContentByteStream
(javax.servlet.http.HttpServletRequest req, IUploadContent uploadContent) protected void
processUploadContentFromTempFile
(IUploadContent upload, String tempFileName) protected void
processUploadStreamContentFromTempFile
(IUploadStreamContent upload, String tempFileName) protected String
tempStoreSlice
(String sessionId, String contentId, String s) Methods inherited from class org.eclnt.jsfserver.util.CCServletBaseWithContextMgmt
doGet, doPost, init
Methods inherited from class org.eclnt.jsfserver.util.CCServletBase
checkIfToInitializeCCEnvironment, proposeContentType, setContentType, setContentTypeInResponse
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, log, log
-
Constructor Details
-
UploadContentServlet
public UploadContentServlet()
-
-
Method Details
-
checkIfToAbortOnMissingHttpSession
protected boolean checkIfToAbortOnMissingHttpSession(javax.servlet.http.HttpServletRequest req) - Specified by:
checkIfToAbortOnMissingHttpSession
in classCCServletBaseWithContextMgmt
-
processRequest
protected void processRequest(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) throws javax.servlet.ServletException, IOException - Specified by:
processRequest
in classCCServletBaseWithContextMgmt
- Throws:
javax.servlet.ServletException
IOException
-
processUploadStreamContentFromTempFile
protected void processUploadStreamContentFromTempFile(IUploadStreamContent upload, String tempFileName) throws Exception - Throws:
Exception
-
processUploadContentFromTempFile
-
tempStoreSlice
- Returns:
- If the data is completely uploaded (last slice): name of file name which contains the uploaded data. - If the data is not completely uploaded (interim slice) then null is returned.
-
processUploadContentByteStream
protected void processUploadContentByteStream(javax.servlet.http.HttpServletRequest req, IUploadContent uploadContent) throws Exception - Throws:
Exception
-
processUI5Upload
protected void processUI5Upload(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp, IUploadContent uploadContent) throws Exception - Throws:
Exception
-
clear
public static void clear(javax.servlet.http.HttpSession session) Clear complete content of temp files.- Parameters:
session
-
-