|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QueryRequestFactory
| Method Summary | |
|---|---|
QueryRequest |
createDoNotProxyQuery(QueryRequest qr)
Copies a query request and marks it to not be proxied. |
QueryRequest |
createMulticastQuery(byte[] guid,
QueryRequest qr)
Creates a new QueryRequest instance for multicast queries. |
QueryRequest |
createNetworkQuery(byte[] guid,
byte ttl,
byte hops,
byte[] payload,
Message.Network network)
Creates a new query from the network. |
QueryRequest |
createNonFirewalledQuery(String query,
byte ttl)
Specialized constructor used to create a query without the firewalled bit set. |
QueryRequest |
createOutOfBandQuery(byte[] guid,
String query,
String xmlQuery)
Creates a new query for the specified file name and the designated XML. |
QueryRequest |
createOutOfBandQuery(byte[] guid,
String query,
String xmlQuery,
MediaType type)
Creates a new query for the specified file name and the designated XML. |
QueryRequest |
createOutOfBandQuery(String query,
byte[] ip,
int port)
Creates a new query for the specified file name, with no XML. |
QueryRequest |
createProxyQuery(QueryRequest qr,
byte[] guid)
Creates a new OOBquery from the existing query with the specified guid (which should be address encoded). |
QueryRequest |
createQuery(byte[] guid,
String query,
String xmlQuery)
Creates a new query with the specified guid, query string, and xml query string. |
QueryRequest |
createQuery(byte[] guid,
String query,
String xmlQuery,
MediaType type)
Creates a new query with the specified guid, query string, and xml query string. |
QueryRequest |
createQuery(QueryRequest qr,
byte ttl)
Creates a new query from the existing query with the specified ttl. |
QueryRequest |
createQuery(Set<? extends URN> urnSet)
Creates a new query for the specified URN set. |
QueryRequest |
createQuery(String query)
Creates a new query for the specified file name, with no XML. |
QueryRequest |
createQuery(String query,
byte ttl)
Creates a new query for the specified file name, with no XML. |
QueryRequest |
createQuery(String query,
String xmlQuery)
Creates a new query for the specified file name, with no XML. |
QueryRequest |
createQuery(URN sha1)
Creates a new query for the specified SHA1 value. |
QueryRequest |
createQuery(URN sha1,
String filename)
Creates a new query for the specified SHA1 value with file name thrown in for good measure (or at least until \ works as a query). |
QueryRequest |
createQueryKeyQuery(QueryRequest qr,
AddressSecurityToken key)
Creates a new QueryRequest that is a copy of the input query, except that it includes the specified query key. |
QueryRequest |
createQueryKeyQuery(String query,
AddressSecurityToken key)
Creates a new query with the specified query key for use in GUESS-style UDP queries. |
QueryRequest |
createQueryKeyQuery(URN sha1,
AddressSecurityToken key)
Creates a new query with the specified query key for use in GUESS-style UDP queries. |
QueryRequest |
createQueryRequest(byte[] guid,
byte ttl,
int minSpeed,
String query,
String richQuery,
Set<? extends URN> queryUrns,
AddressSecurityToken addressSecurityToken,
boolean isFirewalled,
Message.Network network,
boolean canReceiveOutOfBandReplies,
int featureSelector,
boolean doNotProxy,
int metaFlagMask)
Builds a new query from scratch but you can flag it as a Requery, if needed. |
QueryRequest |
createQueryRequest(byte[] guid,
byte ttl,
int minSpeed,
String query,
String richQuery,
Set<? extends URN> queryUrns,
AddressSecurityToken addressSecurityToken,
boolean isFirewalled,
Message.Network network,
boolean canReceiveOutOfBandReplies,
int featureSelector,
boolean doNotProxy,
int metaFlagMask,
boolean normalize)
Builds a new query from scratch but you can flag it as a Requery, if needed. |
QueryRequest |
createQueryRequest(byte[] guid,
byte ttl,
String query,
String richQuery,
Set<? extends URN> queryUrns,
AddressSecurityToken addressSecurityToken,
boolean isFirewalled,
Message.Network network,
boolean canReceiveOutOfBandReplies,
int featureSelector)
Builds a new query from scratch but you can flag it as a Requery, if needed. |
QueryRequest |
createQueryRequest(byte[] guid,
byte ttl,
String query,
String richQuery,
Set<? extends URN> queryUrns,
AddressSecurityToken addressSecurityToken,
boolean isFirewalled,
Message.Network network,
boolean canReceiveOutOfBandReplies,
int featureSelector,
boolean doNotProxy,
int metaFlagMask)
Builds a new query from scratch but you can flag it as a Requery, if needed. |
QueryRequest |
createRequery(String query)
Creates a requery for when we don't know the hash of the file -- we don't know the hash. |
QueryRequest |
createRequery(URN sha1)
Creates a new requery for the specified SHA1 value. |
QueryRequest |
createRequery(URN sha1,
byte ttl)
Creates a new requery for the specified SHA1 value and the specified firewall boolean. |
QueryRequest |
createWhatIsNewOOBQuery(byte[] guid,
byte ttl)
Creates a new 'What is new'? OOB query with the specified guid and ttl. |
QueryRequest |
createWhatIsNewOOBQuery(byte[] guid,
byte ttl,
MediaType type)
Creates a new 'What is new'? OOB query with the specified guid and ttl. |
QueryRequest |
createWhatIsNewQuery(byte[] guid,
byte ttl)
Creates a new 'What is new'? query with the specified guid and ttl. |
QueryRequest |
createWhatIsNewQuery(byte[] guid,
byte ttl,
MediaType type)
Creates a new 'What is new'? query with the specified guid and ttl. |
QueryRequest |
unmarkOOBQuery(QueryRequest qr)
Creates a new query from the existing query and loses the OOB marking. |
| Method Detail |
|---|
QueryRequest createRequery(URN sha1)
sha1 - the URN of the file to search for
NullPointerException - if the sha1 argument
is nullQueryRequest createQuery(URN sha1)
sha1 - the URN of the file to search for
NullPointerException - if the sha1 argument
is null
QueryRequest createQuery(URN sha1,
String filename)
sha1 - the URN of the file to search for
NullPointerException - if the sha1 argument
is null
QueryRequest createRequery(URN sha1,
byte ttl)
sha1 - the URN of the file to search forttl - the time to live (ttl) of the query
NullPointerException - if the sha1 argument
is null
IllegalArgumentException - if the ttl value is negative
or greater than the maximum allowed valueQueryRequest createQuery(Set<? extends URN> urnSet)
urnSet - the Set of URNss to request.
NullPointerException - if either sets are null.QueryRequest createRequery(String query)
query - the query string
NullPointerException - if the query argument
is null
IllegalArgumentException - if the query
argument is zero-length (empty)QueryRequest createQuery(String query)
query - the file name to search for
NullPointerException - if the query argument
is null
IllegalArgumentException - if the query
argument is zero-length (empty)
QueryRequest createOutOfBandQuery(byte[] guid,
String query,
String xmlQuery)
query - the file name to search forguid - I trust that this is a address encoded guid. Your loss if it
isn't....
NullPointerException - if the query argument
is null
IllegalArgumentException - if the query
argument is zero-length (empty)
QueryRequest createOutOfBandQuery(byte[] guid,
String query,
String xmlQuery,
MediaType type)
query - the file name to search forguid - I trust that this is a address encoded guid. Your loss if it
isn't....type - can be null - the type of results you want.
NullPointerException - if the query argument
is null
IllegalArgumentException - if the query
argument is zero-length (empty)
QueryRequest createOutOfBandQuery(String query,
byte[] ip,
int port)
query - the file name to search for
NullPointerException - if the query argument
is null
IllegalArgumentException - if the query
argument is zero-length (empty)
QueryRequest createWhatIsNewQuery(byte[] guid,
byte ttl)
ttl - the desired ttl of the query.guid - the desired guid of the query.
QueryRequest createWhatIsNewQuery(byte[] guid,
byte ttl,
MediaType type)
ttl - the desired ttl of the query.guid - the desired guid of the query.
QueryRequest createWhatIsNewOOBQuery(byte[] guid,
byte ttl)
ttl - the desired ttl of the query.guid - the desired guid of the query.
QueryRequest createWhatIsNewOOBQuery(byte[] guid,
byte ttl,
MediaType type)
ttl - the desired ttl of the query.guid - the desired guid of the query.
QueryRequest createQuery(String query,
String xmlQuery)
query - the file name to search for
NullPointerException - if the query argument
is null or if the xmlQuery argument is
null
IllegalArgumentException - if the query
argument and the xml query are both zero-length (empty)
QueryRequest createQuery(String query,
byte ttl)
query - the file name to search forttl - the time to live (ttl) of the query
NullPointerException - if the query argument
is null
IllegalArgumentException - if the query
argument is zero-length (empty)
IllegalArgumentException - if the ttl value is negative
or greater than the maximum allowed value
QueryRequest createQuery(byte[] guid,
String query,
String xmlQuery)
guid - the message GUID for the queryquery - the query stringxmlQuery - the xml query string
NullPointerException - if the query argument
is null, if the xmlQuery argument is
null, or if the guid argument is
null
IllegalArgumentException - if the guid length is not 16,
if both the query strings are empty, or if the XML does not
appear to be valid
QueryRequest createQuery(byte[] guid,
String query,
String xmlQuery,
MediaType type)
guid - the message GUID for the queryquery - the query stringxmlQuery - the xml query string
NullPointerException - if the query argument
is null, if the xmlQuery argument is
null, or if the guid argument is
null
IllegalArgumentException - if the guid length is not 16,
if both the query strings are empty, or if the XML does not
appear to be valid
QueryRequest createProxyQuery(QueryRequest qr,
byte[] guid)
qr - the QueryRequest to copy
IllegalArgumentException - thrown if guid is not right size of if
query is bad.QueryRequest createDoNotProxyQuery(QueryRequest qr)
IllegalArgumentException - if the payload is not modifiable
IllegalArgumentException - if the query request is not from a
LimeWire
IllegalArgumentException - if #isOriginated() is false
QueryRequest createQuery(QueryRequest qr,
byte ttl)
qr - the QueryRequest to copyttl - the new ttl
QueryRequest unmarkOOBQuery(QueryRequest qr)
qr - the QueryRequest to copy
IllegalArgumentException - if the payload is not modifiable
IllegalArgumentException - if the query request is not from a
LimeWire
QueryRequest createQueryKeyQuery(String query,
AddressSecurityToken key)
query - the query stringkey - the query key
NullPointerException - if the query argument
is null or if the key argument is
null
IllegalArgumentException - if the query
argument is zero-length (empty)
QueryRequest createQueryKeyQuery(URN sha1,
AddressSecurityToken key)
sha1 - the URNkey - the query key
NullPointerException - if the query argument
is null or if the key argument is
null
IllegalArgumentException - if the query
argument is zero-length (empty)
QueryRequest createMulticastQuery(byte[] guid,
QueryRequest qr)
qr - the QueryRequest instance containing all the data
necessary to create a multicast query
NullPointerException - if the qr argument is
null
QueryRequest createQueryKeyQuery(QueryRequest qr,
AddressSecurityToken key)
qr - the QueryRequest to usekey - the AddressSecurityToken to add
QueryRequest createNonFirewalledQuery(String query,
byte ttl)
query - the query string
QueryRequest createNetworkQuery(byte[] guid,
byte ttl,
byte hops,
byte[] payload,
Message.Network network)
throws BadPacketException
guid - the GUID of the queryttl - the time to live of the queryhops - the hops of the querypayload - the query payload
BadPacketException
QueryRequest createQueryRequest(byte[] guid,
byte ttl,
String query,
String richQuery,
Set<? extends URN> queryUrns,
AddressSecurityToken addressSecurityToken,
boolean isFirewalled,
Message.Network network,
boolean canReceiveOutOfBandReplies,
int featureSelector)
queryUrns - Set of URN instances requested for
this query, which may be empty or null if no URNs were requested
IllegalArgumentException - if the query string, the xml
query string, and the urns are all empty, or if the feature
selector is bad
QueryRequest createQueryRequest(byte[] guid,
byte ttl,
String query,
String richQuery,
Set<? extends URN> queryUrns,
AddressSecurityToken addressSecurityToken,
boolean isFirewalled,
Message.Network network,
boolean canReceiveOutOfBandReplies,
int featureSelector,
boolean doNotProxy,
int metaFlagMask)
queryUrns - Set of URN instances requested for
this query, which may be empty or null if no URNs were requested
IllegalArgumentException - if the query string, the xml
query string, and the urns are all empty, or if the feature
selector is bad
QueryRequest createQueryRequest(byte[] guid,
byte ttl,
int minSpeed,
String query,
String richQuery,
Set<? extends URN> queryUrns,
AddressSecurityToken addressSecurityToken,
boolean isFirewalled,
Message.Network network,
boolean canReceiveOutOfBandReplies,
int featureSelector,
boolean doNotProxy,
int metaFlagMask)
queryUrns - Set of URN instances requested for
this query, which may be empty or null if no URNs were requested
IllegalArgumentException - if the query string, the xml
query string, and the urns are all empty, or if the capability
selector is bad
QueryRequest createQueryRequest(byte[] guid,
byte ttl,
int minSpeed,
String query,
String richQuery,
Set<? extends URN> queryUrns,
AddressSecurityToken addressSecurityToken,
boolean isFirewalled,
Message.Network network,
boolean canReceiveOutOfBandReplies,
int featureSelector,
boolean doNotProxy,
int metaFlagMask,
boolean normalize)
queryUrns - Set of URN instances requested for
this query, which may be empty or null if no URNs were requested
IllegalArgumentException - if the query string, the xml
query string, and the urns are all empty, or if the capability
selector is bad
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||