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
Server side receiver of http-post containing upload of data from client side.
- See Also:
-
Field Summary
Fields inherited from interface org.eclnt.jsfserver.util.ICCServerConstants
CLIENTDEVICETYPE_DESKTOP, CLIENTDEVICETYPE_MOBILE, CLIENTJAVATYPE_FX, CLIENTJAVATYPE_SWING, CLIENTTYPE_APPLET, CLIENTTYPE_APPLICATION, CLIENTTYPE_BROWSER, CLIENTTYPE_RISC, CLIENTTYPE_UI5, CLIENTTYPE_WEBSTART, EXPLICIT_EMPTY, 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, LITERAL_LINK_PREFIX, LITERAL_TEMP_PREFIX, QP_CCSTYLE, QP_KEEPDIALOGSESSION, QP_SUBPAGEID, SECURITY_ROLE_CCADMIN, SESSION_TRACKING_COOKIE, SESSION_TRACKING_URL, SIZE_UNDEFINED, TEXTPANE_CONTENTTYPE_HTML, TEXTPANE_CONTENTTYPE_PLAIN
-
Constructor Summary
Constructors -
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.static void
initializeObserverThreadInterval
(long value) static void
initializeTempFileTimeout
(long value) protected void
processRequest
(javax.servlet.http.HttpServletRequest req, javax.servlet.http.HttpServletResponse resp) protected void
processUploadContentByteStream
(javax.servlet.http.HttpServletRequest req, IUploadContent uploadContent) protected void
processUploadContentFromTempFile
(IUploadContent upload, String tempFileName, String tempFileNameFinished) protected void
processUploadStreamContentFromTempFile
(IUploadStreamContent upload, String tempFileName, String tempFileNameFinished) protected org.eclnt.jsfserver.bufferedcontent.UploadContentServlet.TempFileSaveResult
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
-
initializeObserverThreadInterval
public static void initializeObserverThreadInterval(long value) -
initializeTempFileTimeout
public static void initializeTempFileTimeout(long value) -
clear
public static void clear(javax.servlet.http.HttpSession session) Clear complete content of temp files.- Parameters:
session
-
-
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, String tempFileNameFinished) -
processUploadContentFromTempFile
protected void processUploadContentFromTempFile(IUploadContent upload, String tempFileName, String tempFileNameFinished) -
tempStoreSlice
protected org.eclnt.jsfserver.bufferedcontent.UploadContentServlet.TempFileSaveResult tempStoreSlice(String sessionId, String contentId, String s) - 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
-