|Constructor and Description|
|Modifier and Type||Method and Description|
Returns the SessionTempFile for the file at
Makes a new SessionTempFile for the file at
@Nonnull public SessionTempFile makeSessionTempFile(String path) throws IllegalArgumentException, IllegalStateException
path. The lifecycle of the SessionTempFile will become bound to the HTTP session associated with the current thread, meaning that the file will be deleted when the session is destroyed.
Note that for security reasons
path must point to a file in
java.io.tmpdir or in JIRA's temporary
path- a relative (within
java.io.tmpdir) or absolute path
IllegalArgumentException- if there is no file at
pathor if the file is not in a temporary file directory
@Nullable public SessionTempFile getSessionTempFile(String path) throws IllegalArgumentException, SessionNotFoundException
path, which must have been previously created using
TempFileFactory.makeSessionTempFile(String), or null if not found.
Copyright © 2002-2017 Atlassian. All Rights Reserved.