com.kenmccrary.jtella
Class SearchMessage

java.lang.Object
  |
  +--com.kenmccrary.jtella.Message
        |
        +--com.kenmccrary.jtella.SearchMessage

public class SearchMessage
extends com.kenmccrary.jtella.Message

GNUTella search message


Fields inherited from class com.kenmccrary.jtella.Message
guid, hops, payload, payloadSize, SIZE, ttl, type
 
Constructor Summary
SearchMessage(java.lang.String criteria, int minumumSpeed)
          Construct a GNUTella search query
 
Method Summary
 int getMinimumDownloadSpeed()
          Get the minimum download speed for responses
 java.lang.String getSearchCriteria()
          Query the search criteria for this message
 
Methods inherited from class com.kenmccrary.jtella.Message
getByteArray, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchMessage

public SearchMessage(java.lang.String criteria,
                     int minumumSpeed)
Construct a GNUTella search query
Method Detail

getMinimumDownloadSpeed

public int getMinimumDownloadSpeed()
Get the minimum download speed for responses
Returns:
download speed

getSearchCriteria

public java.lang.String getSearchCriteria()
Query the search criteria for this message
Returns:
search criteria