Class HttpHeaders
- java.lang.Object
-
- com.google.jenkins.plugins.storage.HttpHeaders
-
public class HttpHeaders extends Object
Utility class for building HTTP header values.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getContentDisposition(String filename, boolean showInline)
Returns an RFC 6266 Content-Disposition header for the given filename.
-
-
-
Method Detail
-
getContentDisposition
public static String getContentDisposition(String filename, boolean showInline)
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.
-
-