at.ac.tuwien.infosys.rnue.interfaces
Interface ISearchResponse

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
SearchResponseImpl

public interface ISearchResponse
extends java.io.Serializable

A class implementing the SearchResponseImpl interface represents the search result form a single ShareMe peer. An object of this type is returned by a remote search on a ShareMe peer. It provides an constructor to create a new SearchResponseImpl object and methods to to query the encapsulated variables.

The class implementing this interface should provide a constructor that takes two parameter. First, a list of files (IFileList) in the locale file base matching the search request. Second, the signature of the search query. The signature is generated using the sign method of the ISecurityHelper class. (Takes the value null for task 2.)


Method Summary
 IFileList getFileList()
          Returns the list of files (IFileList) at the remote peer matching the search request.
 byte[] getSignature()
          Returns the signature of this search response.
 

Method Detail

getFileList

public IFileList getFileList()
Returns the list of files (IFileList) at the remote peer matching the search request.

Returns:
list of matching files

getSignature

public byte[] getSignature()
Returns the signature of this search response.

Returns:
signature