Class HttpHeaders
java.lang.Object
com.google.jenkins.plugins.storage.HttpHeaders
Utility class for building HTTP header values.
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getContentDisposition
(String filename, boolean showInline) Returns an RFC 6266 Content-Disposition header for the given filename.
-
Method Details
-
getContentDisposition
Returns an RFC 6266 Content-Disposition header for the given filename.- Parameters:
filename
- Name of the file to get the Content-Disposition header for.showInline
- If the content should be displayed inline or as an attachment.- Returns:
- The RFC 6266 Content-Disposition header for the filename.
-