sharpster.common
Class FileResponse

java.lang.Object
  |
  +--sharpster.common.Response
        |
        +--sharpster.common.FileResponse
All Implemented Interfaces:
java.io.Serializable

public class FileResponse
extends Response
implements java.io.Serializable

A response containg received files.

See Also:
Serialized Form

Constructor Summary
FileResponse()
           
 
Method Summary
 sharpster.common.FileCollection getFiles()
          Returns the file collection.
 int getType()
          Returns the type of this response.
 void setFiles(sharpster.common.FileCollection files)
          Sets the FileCollection.
 java.lang.String toString()
           
 java.lang.Object writeReplace()
           
 
Methods inherited from class sharpster.common.Response
getOrigin, getUser, isError, setError, setOrigin, setUser
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FileResponse

public FileResponse()
Method Detail

getType

public int getType()
Returns the type of this response.

Specified by:
getType in class Response

getFiles

public sharpster.common.FileCollection getFiles()
Returns the file collection.

Returns:
A file collection.

writeReplace

public java.lang.Object writeReplace()
                              throws java.io.ObjectStreamException
java.io.ObjectStreamException

setFiles

public void setFiles(sharpster.common.FileCollection files)
Sets the FileCollection.

Parameters:
files - The file collection to be set.

toString

public java.lang.String toString()
Overrides:
toString in class Response