|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface QueryReplyFactory
| Method Summary | |
|---|---|
QueryReply |
createFromNetwork(byte[] guid,
byte ttl,
byte hops,
byte[] payload)
Creates a new query reply with data read from the network. |
QueryReply |
createFromNetwork(byte[] guid,
byte ttl,
byte hops,
byte[] payload,
Message.Network network)
|
QueryReply |
createQueryReply(byte[] guid,
byte ttl,
int port,
byte[] ip,
long speed,
Response[] responses,
byte[] clientGUID,
boolean isMulticastReply)
Creates a new query reply. |
QueryReply |
createQueryReply(byte[] guid,
byte ttl,
int port,
byte[] ip,
long speed,
Response[] responses,
byte[] clientGUID,
boolean needsPush,
boolean isBusy,
boolean finishedUpload,
boolean measuredSpeed,
boolean supportsChat,
boolean isMulticastReply)
Creates a new QueryReply with a BearShare 2.2.0-style QHD. |
QueryReply |
createQueryReply(byte[] guid,
byte ttl,
int port,
byte[] ip,
long speed,
Response[] responses,
byte[] clientGUID,
byte[] xmlBytes,
boolean needsPush,
boolean isBusy,
boolean finishedUpload,
boolean measuredSpeed,
boolean supportsChat,
boolean isMulticastReply)
Creates a new QueryReply with a BearShare 2.2.0-style QHD. |
QueryReply |
createQueryReply(byte[] guid,
byte ttl,
int port,
byte[] ip,
long speed,
Response[] responses,
byte[] clientGUID,
byte[] xmlBytes,
boolean needsPush,
boolean isBusy,
boolean finishedUpload,
boolean measuredSpeed,
boolean supportsChat,
boolean isMulticastReply,
boolean supportsFWTransfer,
Set<? extends IpPort> proxies)
Creates a new QueryReply with a BearShare 2.2.0-style QHD. |
QueryReply |
createQueryReply(byte[] guid,
byte ttl,
int port,
byte[] ip,
long speed,
Response[] responses,
byte[] clientGUID,
byte[] xmlBytes,
boolean needsPush,
boolean isBusy,
boolean finishedUpload,
boolean measuredSpeed,
boolean supportsChat,
boolean isMulticastReply,
boolean supportsFWTransfer,
Set<? extends IpPort> proxies,
SecurityToken securityToken)
Creates a new QueryReply with a BearShare 2.2.0-style QHD. |
QueryReply |
createQueryReply(byte[] guid,
byte ttl,
int port,
byte[] ip,
long speed,
Response[] responses,
byte[] clientGUID,
byte[] xmlBytes,
boolean needsPush,
boolean isBusy,
boolean finishedUpload,
boolean measuredSpeed,
boolean supportsChat,
boolean isMulticastReply,
Set<? extends IpPort> proxies)
Creates a new QueryReply with a BearShare 2.2.0-style QHD. |
QueryReply |
createQueryReply(byte[] guid,
byte ttl,
int port,
byte[] ip,
long speed,
Response[] responses,
byte[] clientGUID,
byte[] xmlBytes,
boolean needsPush,
boolean isBusy,
boolean finishedUpload,
boolean measuredSpeed,
boolean supportsChat,
boolean isMulticastReply,
Set<? extends IpPort> proxies,
SecurityToken securityToken)
Creates a new QueryReply with a BearShare 2.2.0-style QHD. |
QueryReply |
createQueryReply(byte[] guid,
QueryReply reply)
Copy constructor. |
QueryReply |
createWithNewAddress(byte[] address,
QueryReply original)
Copy constructor. |
QueryReply |
createWithReturnPathInfo(QueryReply original,
IpPort me,
IpPort source)
Copy constructor, appending information about the return path. |
| Method Detail |
|---|
QueryReply createQueryReply(byte[] guid,
byte ttl,
int port,
byte[] ip,
long speed,
Response[] responses,
byte[] clientGUID,
boolean isMulticastReply)
QueryReply createQueryReply(byte[] guid,
byte ttl,
int port,
byte[] ip,
long speed,
Response[] responses,
byte[] clientGUID,
boolean needsPush,
boolean isBusy,
boolean finishedUpload,
boolean measuredSpeed,
boolean supportsChat,
boolean isMulticastReply)
needsPush - true iff this is firewalled and the downloader should
attempt a push without trying a normal download.isBusy - true iff this server is busy, i.e., has no more upload
slots.finishedUpload - true iff this server has successfully finished an
uploadmeasuredSpeed - true iff speed is measured, not as reported by the
usersupportsChat - true iff the host currently allows chatting.
QueryReply createQueryReply(byte[] guid,
byte ttl,
int port,
byte[] ip,
long speed,
Response[] responses,
byte[] clientGUID,
byte[] xmlBytes,
boolean needsPush,
boolean isBusy,
boolean finishedUpload,
boolean measuredSpeed,
boolean supportsChat,
boolean isMulticastReply)
needsPush - true iff this is firewalled and the downloader should
attempt a push without trying a normal download.isBusy - true iff this server is busy, i.e., has no more upload
slotsfinishedUpload - true iff this server has successfully finished an
uploadmeasuredSpeed - true iff speed is measured, not as reported by the
userxmlBytes - The (non-null) byte[] containing aggregated and indexed
information regarding file metadata. In terms of byte-size, this
should not be bigger than 65535 bytes. Anything larger will result
in an Exception being throw. This String is assumed to consist of
compressed data.supportsChat - true iff the host currently allows chatting.
IllegalArgumentException - Thrown if xmlBytes.length >
XML_MAX_SIZE
QueryReply createQueryReply(byte[] guid,
byte ttl,
int port,
byte[] ip,
long speed,
Response[] responses,
byte[] clientGUID,
byte[] xmlBytes,
boolean needsPush,
boolean isBusy,
boolean finishedUpload,
boolean measuredSpeed,
boolean supportsChat,
boolean isMulticastReply,
Set<? extends IpPort> proxies)
needsPush - true iff this is firewalled and the downloader should
attempt a push without trying a normal download.isBusy - true iff this server is busy, i.e., has no more upload
slotsfinishedUpload - true iff this server has successfully finished an
uploadmeasuredSpeed - true iff speed is measured, not as reported by the
userxmlBytes - The (non-null) byte[] containing aggregated and indexed
information regarding file metadata. In terms of byte-size, this
should not be bigger than 65535 bytes. Anything larger will result
in an Exception being throw. This String is assumed to consist of
compressed data.supportsChat - true iff the host currently allows chatting.proxies - an array of PushProxy interfaces. will be included in the
replies GGEP extension.
IllegalArgumentException - Thrown if xmlBytes.length >
XML_MAX_SIZE
QueryReply createQueryReply(byte[] guid,
byte ttl,
int port,
byte[] ip,
long speed,
Response[] responses,
byte[] clientGUID,
byte[] xmlBytes,
boolean needsPush,
boolean isBusy,
boolean finishedUpload,
boolean measuredSpeed,
boolean supportsChat,
boolean isMulticastReply,
Set<? extends IpPort> proxies,
SecurityToken securityToken)
needsPush - true iff this is firewalled and the downloader should
attempt a push without trying a normal download.isBusy - true iff this server is busy, i.e., has no more upload
slotsfinishedUpload - true iff this server has successfully finished an
uploadmeasuredSpeed - true iff speed is measured, not as reported by the
userxmlBytes - The (non-null) byte[] containing aggregated and indexed
information regarding file metadata. In terms of byte-size, this
should not be bigger than 65535 bytes. Anything larger will result
in an Exception being throw. This String is assumed to consist of
compressed data.supportsChat - true iff the host currently allows chatting.proxies - an array of PushProxy interfaces. will be included in the
replies GGEP extension.the - security token to echo along with the query reply
IllegalArgumentException - Thrown if xmlBytes.length >
XML_MAX_SIZE
QueryReply createQueryReply(byte[] guid,
byte ttl,
int port,
byte[] ip,
long speed,
Response[] responses,
byte[] clientGUID,
byte[] xmlBytes,
boolean needsPush,
boolean isBusy,
boolean finishedUpload,
boolean measuredSpeed,
boolean supportsChat,
boolean isMulticastReply,
boolean supportsFWTransfer,
Set<? extends IpPort> proxies)
needsPush - true iff this is firewalled and the downloader should
attempt a push without trying a normal download.isBusy - true iff this server is busy, i.e., has no more upload
slotsfinishedUpload - true iff this server has successfully finished an
uploadmeasuredSpeed - true iff speed is measured, not as reported by the
userxmlBytes - The (non-null) byte[] containing aggregated and indexed
information regarding file metadata. In terms of byte-size, this
should not be bigger than 65535 bytes. Anything larger will result
in an Exception being throw. This String is assumed to consist of
compressed data.supportsChat - true iff the host currently allows chatting.proxies - an array of PushProxy interfaces. will be included in the
replies GGEP extension.
IllegalArgumentException - Thrown if xmlBytes.length >
XML_MAX_SIZE
QueryReply createQueryReply(byte[] guid,
byte ttl,
int port,
byte[] ip,
long speed,
Response[] responses,
byte[] clientGUID,
byte[] xmlBytes,
boolean needsPush,
boolean isBusy,
boolean finishedUpload,
boolean measuredSpeed,
boolean supportsChat,
boolean isMulticastReply,
boolean supportsFWTransfer,
Set<? extends IpPort> proxies,
SecurityToken securityToken)
needsPush - true iff this is firewalled and the downloader should
attempt a push without trying a normal download.isBusy - true iff this server is busy, i.e., has no more upload
slotsfinishedUpload - true iff this server has successfully finished an
uploadmeasuredSpeed - true iff speed is measured, not as reported by the
userxmlBytes - The (non-null) byte[] containing aggregated and indexed
information regarding file metadata. In terms of byte-size, this
should not be bigger than 65535 bytes. Anything larger will result
in an Exception being throw. This String is assumed to consist of
compressed data.supportsChat - true iff the host currently allows chatting.proxies - an array of PushProxy interfaces. will be included in the
replies GGEP extension.securityToken - might be null
IllegalArgumentException - Thrown if xmlBytes.length >
XML_MAX_SIZE
QueryReply createFromNetwork(byte[] guid,
byte ttl,
byte hops,
byte[] payload)
throws BadPacketException
BadPacketException
QueryReply createQueryReply(byte[] guid,
QueryReply reply)
Note: The payload is not really copied, but the reference in the newly constructed query reply, points to the one in the passed reply. But since the payload cannot be mutated, it shouldn't make difference if different query replies maintain reference to same payload
guid - The new GUID for the replyreply - The query reply from where to copy the fields into the new
constructed query reply
QueryReply createWithReturnPathInfo(QueryReply original,
IpPort me,
IpPort source)
original - the original queryme - this host.source - the source that the reply came from
QueryReply createWithNewAddress(byte[] address,
QueryReply original)
address - - 4 byte ip address.
QueryReply createFromNetwork(byte[] guid,
byte ttl,
byte hops,
byte[] payload,
Message.Network network)
throws BadPacketException
BadPacketException
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||