Class HttpHeaders

java.lang.Object
com.google.jenkins.plugins.storage.HttpHeaders

public class HttpHeaders extends Object
Utility class for building HTTP header values.
  • Method Details

    • 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.