Class UploadContentServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
org.eclnt.jsfserver.util.CCServletBase
org.eclnt.jsfserver.util.CCServletBaseWithContextMgmt
org.eclnt.jsfserver.bufferedcontent.UploadContentServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable,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 booleancheckIfToAbortOnMissingHttpSession(jakarta.servlet.http.HttpServletRequest req) static voidclear(jakarta.servlet.http.HttpSession session) Clear complete content of temp files.static voidinitializeObserverThreadInterval(long value) static voidinitializeTempFileTimeout(long value) protected voidprocessRequest(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) protected voidprocessUploadContentByteStream(jakarta.servlet.http.HttpServletRequest req, IUploadContent uploadContent) protected voidprocessUploadContentFromTempFile(IUploadContent upload, String tempFileName, String tempFileNameFinished) protected voidprocessUploadStreamContentFromTempFile(IUploadStreamContent upload, String tempFileName, String tempFileNameFinished) protected org.eclnt.jsfserver.bufferedcontent.UploadContentServlet.TempFileSaveResulttempStoreSlice(String sessionId, String contentId, String s) Methods inherited from class org.eclnt.jsfserver.util.CCServletBaseWithContextMgmt
doGet, doPost, initMethods inherited from class org.eclnt.jsfserver.util.CCServletBase
checkIfToInitializeCCEnvironment, proposeContentType, setContentType, setContentTypeInResponseMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, serviceMethods inherited from class jakarta.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(jakarta.servlet.http.HttpSession session) Clear complete content of temp files.- Parameters:
session-
-
checkIfToAbortOnMissingHttpSession
protected boolean checkIfToAbortOnMissingHttpSession(jakarta.servlet.http.HttpServletRequest req) - Specified by:
checkIfToAbortOnMissingHttpSessionin classCCServletBaseWithContextMgmt
-
processRequest
protected void processRequest(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse resp) throws jakarta.servlet.ServletException, IOException - Specified by:
processRequestin classCCServletBaseWithContextMgmt- Throws:
jakarta.servlet.ServletExceptionIOException
-
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(jakarta.servlet.http.HttpServletRequest req, IUploadContent uploadContent) throws Exception - Throws:
Exception
-