Class FileUtils


  • public class FileUtils
    extends java.lang.Object
    This class provides static utility methods used throughout GitLab4J.
    • Constructor Summary

      Constructors 
      Constructor Description
      FileUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getFilenameFromContentDisposition​(jakarta.ws.rs.core.Response response)
      Get the filename from the "Content-Disposition" header of a JAX-RS response.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileUtils

        public FileUtils()
    • Method Detail

      • getFilenameFromContentDisposition

        public static java.lang.String getFilenameFromContentDisposition​(jakarta.ws.rs.core.Response response)
        Get the filename from the "Content-Disposition" header of a JAX-RS response.
        Parameters:
        response - the JAX-RS Response instance to get the "Content-Disposition" header filename from
        Returns:
        the filename from the "Content-Disposition" header of a JAX-RS response, or null if the "Content-Disposition" header is not present in the response