Class ViewTemporaryAttachmentServlet
java.lang.Object
jakarta.servlet.GenericServlet
jakarta.servlet.http.HttpServlet
com.atlassian.jira.web.servlet.viewfile.AbstractViewFileServlet
com.atlassian.jira.web.servlet.viewfile.ViewAttachmentServlet
com.atlassian.jira.web.servlet.viewfile.ViewTemporaryAttachmentServlet
- All Implemented Interfaces:
jakarta.servlet.Servlet,jakarta.servlet.ServletConfig,Serializable
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class com.atlassian.jira.web.servlet.viewfile.AbstractViewFileServlet
AbstractViewFileServlet.JwtAttachmentPermissionException -
Field Summary
FieldsFields inherited from class com.atlassian.jira.web.servlet.viewfile.AbstractViewFileServlet
IMAGE_ATTACHMENT_JWT_TOKEN_QUERY_PARAM_NAME, IMAGE_DISPLAYING_CANNOT_DISPLAY_IMAGE_PATHFields inherited from class jakarta.servlet.http.HttpServlet
LEGACY_DO_HEAD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected CommonAttachmentgetCommonAttachment(String query) protected intgetContentLength(String attachmentPath) protected voidgetInputStream(jakarta.servlet.http.HttpServletRequest request, String attachmentQuery, InputStreamConsumer<io.atlassian.fugue.Unit> consumer) Gets the attachment file (not the file name) that corresponds to the requested attachment.parseAttachmentQuery(String attachmentQuery) Methods inherited from class com.atlassian.jira.web.servlet.viewfile.ViewAttachmentServlet
setResponseContentHeaders, supportsRangeRequestsMethods inherited from class com.atlassian.jira.web.servlet.viewfile.AbstractViewFileServlet
attachmentQuery, checkRequesterIsPermittedToViewTheAttachment, copyRange, doGet, getAttachment, getAttachmentManager, getLoggedInUser, isAnonymousUserPermittedToViewAttachment, isImageAttachmentJwtTokenPresent, isJwtTokenUserPermittedToViewAttachment_andSendAnalyticsEvent, isLoggedInUserPermittedToViewAttachment, isUserLoggedIn, isUserPermittedToViewAttachmentMethods inherited from class jakarta.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, init, service, serviceMethods inherited from class jakarta.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
-
Field Details
-
URL_REGEX
- See Also:
-
URL_PATTERN
-
-
Constructor Details
-
ViewTemporaryAttachmentServlet
public ViewTemporaryAttachmentServlet()
-
-
Method Details
-
getContentLength
- Overrides:
getContentLengthin classViewAttachmentServlet
-
getInputStream
protected void getInputStream(jakarta.servlet.http.HttpServletRequest request, String attachmentQuery, InputStreamConsumer<io.atlassian.fugue.Unit> consumer) throws PermissionException Description copied from class:AbstractViewFileServletGets the attachment file (not the file name) that corresponds to the requested attachment.- Overrides:
getInputStreamin classViewAttachmentServlet- Parameters:
attachmentQuery- the attachment pathconsumer- a procedure that consumes the stream with the attachment data.- Throws:
PermissionException
-
parseAttachmentQuery
-
getCommonAttachment
- Overrides:
getCommonAttachmentin classViewAttachmentServlet
-