Class Sendfile

java.lang.Object
ubic.gemma.rest.util.Sendfile

public final class Sendfile extends Object
Indicate that a file should be sent using Tomcat sendfile.

Note that if sendfile is not supported by the server, this will fall back to a regular file download.

Author:
poirigui
  • Method Details

    • of

      public static Sendfile of(Path path)
      Creates a new Sendfile instance.
      Parameters:
      path - File path to send.
    • getPath

      public Path getPath()
      File path to send.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object