public class ViewTemporaryAttachmentServlet extends ViewAttachmentServlet
Modifier and Type | Class and Description |
---|---|
class |
ViewTemporaryAttachmentServlet.ParsedQuery |
Modifier and Type | Field and Description |
---|---|
static Pattern |
URL_PATTERN |
static String |
URL_REGEX |
Constructor and Description |
---|
ViewTemporaryAttachmentServlet() |
Modifier and Type | Method and Description |
---|---|
protected com.atlassian.jira.web.servlet.CommonAttachment |
getCommonAttachment(String query) |
protected int |
getContentLength(String attachmentPath) |
protected void |
getInputStream(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) |
setResponseHeaders, supportsRangeRequests
attachmentQuery, copyRange, doGet, getAttachment, getLoggedInUser, loggedInUserHasPermissionToViewAttachment
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(String attachmentQuery, InputStreamConsumer<io.atlassian.fugue.Unit> consumer) throws PermissionException, IOException
AbstractViewFileServlet
getInputStream
in class ViewAttachmentServlet
attachmentQuery
- the attachment pathconsumer
- a procedure that consumes the stream with the attachment data.PermissionException
- if the user has insufficient permission to see the attachment.IOException
- if there is a problem getting the attachment.AbstractViewFileServlet.getInputStream(String, com.atlassian.jira.util.io.InputStreamConsumer)
protected ViewTemporaryAttachmentServlet.ParsedQuery parseAttachmentQuery(String attachmentQuery)
protected com.atlassian.jira.web.servlet.CommonAttachment getCommonAttachment(String query)
getCommonAttachment
in class ViewAttachmentServlet
Copyright © 2002-2019 Atlassian. All Rights Reserved.