Package com.linecorp.armeria.server.file
Class HttpFileAttributes
java.lang.Object
com.linecorp.armeria.server.file.HttpFileAttributes
The attributes of an
HttpFile
.- See Also:
HttpFile.readAttributes(Executor)
-
Constructor Summary
ConstructorDescriptionHttpFileAttributes(long length, long lastModifiedMillis)
Creates a new instance. -
Method Summary
-
Constructor Details
-
HttpFileAttributes
public HttpFileAttributes(long length, long lastModifiedMillis)Creates a new instance.- Parameters:
length
- the length in byteslastModifiedMillis
- 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() -
equals
-
toString
-