Class HttpFileAttributes

java.lang.Object
com.linecorp.armeria.server.file.HttpFileAttributes

public final class HttpFileAttributes
extends Object
The attributes of an HttpFile.
See Also:
HttpFile.readAttributes(Executor)
  • Constructor Details

    • HttpFileAttributes

      public HttpFileAttributes​(long length, long lastModifiedMillis)
      Creates a new instance.
      Parameters:
      length - the length in bytes
      lastModifiedMillis - the last modified time represented as the number of milliseconds since the epoch
  • Method Details

    • length

      public long length()
      Returns the length in bytes.
    • lastModifiedMillis

      public long lastModifiedMillis()
      Returns the last modified time represented as the number of milliseconds since the epoch.
    • hashCode

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

      public boolean equals​(@Nullable Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object