public class WordViewUtils extends Object
Modifier and Type | Method and Description |
---|---|
static void |
writeEncodedAttachmentFilenameHeader(RequestHeaders requestHeaders,
String filename,
String userAgent,
String encoding)
JRA-15545: when sending an attachment in a response with a filename that has non-ASCII characters in it, you must
modify your headers slightly so that browsers can recognise the filename.
|
static void |
writeGenericNoCacheHeaders(RequestHeaders requestHeaders) |
public static void writeGenericNoCacheHeaders(RequestHeaders requestHeaders)
public static void writeEncodedAttachmentFilenameHeader(RequestHeaders requestHeaders, String filename, String userAgent, String encoding)
requestHeaders
- the headers of the responsefilename
- the filename to send to the client; should already be URL Encoded!userAgent
- the user agent string from the client's requestencoding
- the encoding used by JIRA (e.g. UTF-8)http://www.faqs.org/rfcs/rfc2231.html, https://bugs.webkit.org/show_bug.cgi?id=15287
Copyright © 2002-2015 Atlassian. All Rights Reserved.