-
Field Summary
Modifier and TypeFieldDescriptionstatic final ScopeEE.Session.Attribute
<?> The session attribute. -
Method Summary
Modifier and TypeMethodDescriptionstatic TempFileContext
get
(HttpSession session) Gets the temp file context for the given session.static TempFileContext
get
(ServletContext servletContext) Gets the temp file context for the given servlet context.static TempFileContext
get
(ServletRequest request) Gets the temp file context for the given servlet request.
-
Field Details
-
SESSION_ATTRIBUTE
The session attribute.
-
-
Method Details
-
get
Gets the temp file context for the given servlet context.- Throws:
IllegalStateException
- if the temp files have not been added to the servlet context.
-
get
Gets the temp file context for the given servlet request.- Throws:
IllegalStateException
- if the temp files have not been added to the servlet request.
-
get
Gets the temp file context for the given session.At this time, temporary files put into the session are deleted when the session is
passivated
, at theend of the session
, or on JVM shutdown. The temporary files are notserialized
with the session.TODO:
TempFileContext
is not currentlySerializable
. What would it mean to serialize temp files? Would the files themselves be wrapped-up into the serialized form? Would just the filenames be serialized, assuming the underlying temp files are available to all servlet containers that might get the session?- Throws:
IllegalStateException
- if the temp files have not been added to the session.
-