public class ViewTemporaryAttachmentServlet extends ViewAttachmentServlet
Modifier and Type | Class and Description |
---|---|
class |
ViewTemporaryAttachmentServlet.ParsedQuery |
AbstractViewFileServlet.JwtAttachmentPermissionException
Modifier and Type | Field and Description |
---|---|
static Pattern |
URL_PATTERN |
static String |
URL_REGEX |
IMAGE_ATTACHMENT_JWT_TOKEN_QUERY_PARAM_NAME, IMAGE_DISPLAYING_CANNOT_DISPLAY_IMAGE_PATH
Constructor and Description |
---|
ViewTemporaryAttachmentServlet() |
Modifier and Type | Method and Description |
---|---|
protected CommonAttachment |
getCommonAttachment(String query) |
protected int |
getContentLength(String attachmentPath) |
protected void |
getInputStream(javax.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.
|
protected ViewTemporaryAttachmentServlet.ParsedQuery |
parseAttachmentQuery(String attachmentQuery) |
setResponseContentHeaders, supportsRangeRequests
attachmentQuery, checkRequesterIsPermittedToViewTheAttachment, copyRange, doGet, getAttachment, getAttachmentManager, getLoggedInUser, isAnonymousUserPermittedToViewAttachment, isImageAttachmentJwtTokenPresent, isJwtTokenUserPermittedToViewAttachment_andSendAnalyticsEvent, isLoggedInUserPermittedToViewAttachment, isUserLoggedIn, isUserPermittedToViewAttachment
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
public static final String URL_REGEX
public static final Pattern URL_PATTERN
protected int getContentLength(String attachmentPath)
getContentLength
in class ViewAttachmentServlet
protected void getInputStream(javax.servlet.http.HttpServletRequest request, String attachmentQuery, InputStreamConsumer<io.atlassian.fugue.Unit> consumer) throws PermissionException
AbstractViewFileServlet
getInputStream
in class ViewAttachmentServlet
attachmentQuery
- the attachment pathconsumer
- a procedure that consumes the stream with the attachment data.PermissionException
protected ViewTemporaryAttachmentServlet.ParsedQuery parseAttachmentQuery(String attachmentQuery)
protected CommonAttachment getCommonAttachment(String query)
getCommonAttachment
in class ViewAttachmentServlet
Copyright © 2002-2022 Atlassian. All Rights Reserved.