Liferay 7.0-ce-b4

com.liferay.portal.fabric.netty.fileserver
Class FileResponse

java.lang.Object
  extended by com.liferay.portal.fabric.netty.fileserver.FileResponse
All Implemented Interfaces:
Serializable

public class FileResponse
extends Object
implements Serializable

See Also:
Serialized Form

Field Summary
static long FILE_NOT_FOUND
           
static long FILE_NOT_MODIFIED
           
 
Constructor Summary
FileResponse(java.nio.file.Path path, long size, long lastModifiedTime, boolean folder)
           
 
Method Summary
 boolean equals(Object obj)
           
 long getLastModifiedTime()
           
 java.nio.file.Path getLocalFile()
           
 java.nio.file.Path getPath()
           
 long getSize()
           
 int hashCode()
           
 boolean isFileNotFound()
           
 boolean isFileNotModified()
           
 boolean isFolder()
           
 void setLocalFile(java.nio.file.Path localFile)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

FILE_NOT_FOUND

public static final long FILE_NOT_FOUND
See Also:
Constant Field Values

FILE_NOT_MODIFIED

public static final long FILE_NOT_MODIFIED
See Also:
Constant Field Values
Constructor Detail

FileResponse

public FileResponse(java.nio.file.Path path,
                    long size,
                    long lastModifiedTime,
                    boolean folder)
Method Detail

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getLastModifiedTime

public long getLastModifiedTime()

getLocalFile

public java.nio.file.Path getLocalFile()

getPath

public java.nio.file.Path getPath()

getSize

public long getSize()

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isFileNotFound

public boolean isFileNotFound()

isFileNotModified

public boolean isFileNotModified()

isFolder

public boolean isFolder()

setLocalFile

public void setLocalFile(java.nio.file.Path localFile)

toString

public String toString()
Overrides:
toString in class Object

Liferay 7.0-ce-b4