at.ac.tuwien.infosys.rnue.helpers.search
Class SearchRequestImpl

java.lang.Object
  |
  +--at.ac.tuwien.infosys.rnue.helpers.search.SearchRequestImpl
All Implemented Interfaces:
ISearchRequest, java.io.Serializable

public class SearchRequestImpl
extends java.lang.Object
implements ISearchRequest

The SearchRequestImpl class represents a search request. An object of the SearchResponseImpl class is returned by the search remote search.

SearchRequestImpl provides a constructor to create a new search request and methods to query the encapsulated variables.

See Also:
Serialized Form

Constructor Summary
SearchRequestImpl(java.lang.String searchString, byte[] sig, java.lang.String originator)
          Creates a new search request.
 
Method Summary
 java.lang.String getRequestOriginator()
          Retrieve the originator (human readabel name) of this search request.
 java.lang.String getSearchString()
          Retrieve the search string from this search request.
 byte[] getSignature()
          Retrieve the signature of this search request.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SearchRequestImpl

public SearchRequestImpl(java.lang.String searchString,
                         byte[] sig,
                         java.lang.String originator)
Creates a new search request.

Parameters:
searchString - java.lang.String that defines the search query.
sig - Signature of the search query. The signature is generated using the sign method of the SecurityHelperImpl class. (Takes the value null for task 2.)
originator - Human readable name of the sender of this search query.
Method Detail

getRequestOriginator

public java.lang.String getRequestOriginator()
Retrieve the originator (human readabel name) of this search request.

Specified by:
getRequestOriginator in interface ISearchRequest
Returns:
owner (originator) of this search request

getSearchString

public java.lang.String getSearchString()
Retrieve the search string from this search request.

Specified by:
getSearchString in interface ISearchRequest
Returns:
search string

getSignature

public byte[] getSignature()
Retrieve the signature of this search request.

Specified by:
getSignature in interface ISearchRequest
Returns:
signature