|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResponseVerifier
Records information about queries so that responses can be validated later. Typical use is to call record(..) on an outgoing query request, and score/matchesType/isMandragoreWorm on each incoming response.
| Method Summary | |
|---|---|
boolean |
isMandragoreWorm(byte[] guid,
Response response)
Returns true if the given response is an instance of the Mandragore Worm. |
boolean |
matchesQuery(byte[] guid,
Response response)
|
boolean |
matchesType(byte[] guid,
Response response)
Returns true if response has the same media type as the corresponding query request the given GUID. |
void |
record(QueryRequest qr)
Same as record(qr, null). |
void |
record(QueryRequest qr,
MediaType type)
|
| Method Detail |
|---|
void record(QueryRequest qr)
void record(QueryRequest qr,
MediaType type)
boolean matchesQuery(byte[] guid,
Response response)
boolean matchesType(byte[] guid,
Response response)
boolean isMandragoreWorm(byte[] guid,
Response response)
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||