|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SearchServices
| Method Summary | |
|---|---|
BrowseHostHandler |
doAsynchronousBrowseHost(FriendPresence friendPresence,
GUID browseGuid,
BrowseListener browseListener)
Initiates a non-blocking browse of address with
session guid browseGuid. |
long |
getLastQueryTime()
Accessor for the last time a query was originated from this host. |
boolean |
isMandragoreWorm(byte[] guid,
Response response)
Returns true if the given response for the query with the given guid is a result of the Madragore worm (8KB files of form "x.exe"). |
boolean |
matchesQuery(byte[] guid,
Response response)
|
boolean |
matchesType(byte[] guid,
Response response)
Returns true if the given response is of the same type as the the query with the given guid. |
byte[] |
newQueryGUID()
Returns a new GUID for passing to query. |
void |
query(byte[] guid,
String query)
Searches the network for files with the given query string and minimum speed, i.e., same as query(guid, query, minSpeed, null). |
void |
query(byte[] guid,
String query,
MediaType type)
Searches the network for files of the given type with the given GUID, query string and minimum speed. |
void |
query(byte[] guid,
String query,
String richQuery,
MediaType type)
Searches the network for files with the given metadata. |
void |
queryWhatIsNew(byte[] guid,
MediaType type)
Sends a 'What Is New' query on the network. |
void |
stopQuery(GUID guid)
Purges the query from the QueryUnicaster (GUESS) and the ResultHandler (which maintains query stats for the purpose of leaf guidance). |
| Method Detail |
|---|
boolean isMandragoreWorm(byte[] guid,
Response response)
guid - the value returned by query(..). MUST be 16 byts long.resp - a response delivered by ActivityCallback.handleQueryReplyResponseVerifier.isMandragoreWorm(byte[], Response)
boolean matchesQuery(byte[] guid,
Response response)
boolean matchesType(byte[] guid,
Response response)
guid - the value returned by query(..). MUST be 16 bytes long.resp - a response delivered by ActivityCallback.handleQueryReplyResponseVerifier.matchesType(byte[], Response)void stopQuery(GUID guid)
guid - The GUID of the query you want to get rid of....long getLastQueryTime()
void queryWhatIsNew(byte[] guid,
MediaType type)
void query(byte[] guid,
String query,
String richQuery,
MediaType type)
richQuery - metadata query to insert between the nulls,
typically in XML formatquery(byte[], String, MediaType)
void query(byte[] guid,
String query)
query(byte[], String, MediaType)
void query(byte[] guid,
String query,
MediaType type)
ActivityCallback is notified asynchronously of responses. These responses can be matched with requests by looking at their GUIDs. (You may want to wrap the bytes with a GUID object for simplicity.) An earlier version of this method returned the reply GUID instead of taking it as an argument. Unfortunately this caused a race condition where replies were returned before the GUI was prepared to handle them.
guid - the guid to use for the query. MUST be a 16-byte
value as returned by newQueryGUID.query - the query string to useminSpeed - the minimum desired result speedtype - the desired type of result (e.g., audio, video), or
null if you don't carebyte[] newQueryGUID()
BrowseHostHandler doAsynchronousBrowseHost(FriendPresence friendPresence,
GUID browseGuid,
BrowseListener browseListener)
address with
session guid browseGuid.
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||