|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HTTPUploadSessionManager
Defines the callback interface for response handlers to the upload manager which provides methods for managing uploaders.
| Nested Class Summary | |
|---|---|
static class |
HTTPUploadSessionManager.QueueStatus
|
| Method Summary | |
|---|---|
void |
addAcceptedUploader(HTTPUploader uploader,
org.apache.http.protocol.HttpContext context)
Adds an accepted HTTPUploader to the internal list of active downloads. |
HTTPUploadSessionManager.QueueStatus |
enqueue(org.apache.http.protocol.HttpContext context,
org.apache.http.HttpRequest request)
Add request to the queue of uploaders. |
HTTPUploader |
getOrCreateUploader(org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context,
UploadType type,
String filename)
Returns an uploader for request. |
void |
handleFreeLoader(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context,
HTTPUploader uploader)
Sets a response code and entity on response for handling
requests from unsupported clients. |
void |
sendResponse(HTTPUploader uploader,
org.apache.http.HttpResponse response)
Adds uploader to the GUI if it is not visible, yet, and
increments the attempted uploads. |
| Method Detail |
|---|
HTTPUploader getOrCreateUploader(org.apache.http.HttpRequest request,
org.apache.http.protocol.HttpContext context,
UploadType type,
String filename)
request. If the previous request
was for filename as well an existing uploader is returned;
otherwise a new uploader is created.
HTTPUploadSessionManager.QueueStatus enqueue(org.apache.http.protocol.HttpContext context,
org.apache.http.HttpRequest request)
request to the queue of uploaders.
UploadSlotManager
void addAcceptedUploader(HTTPUploader uploader,
org.apache.http.protocol.HttpContext context)
void sendResponse(HTTPUploader uploader,
org.apache.http.HttpResponse response)
uploader to the GUI if it is not visible, yet, and
increments the attempted uploads.
void handleFreeLoader(org.apache.http.HttpRequest request,
org.apache.http.HttpResponse response,
org.apache.http.protocol.HttpContext context,
HTTPUploader uploader)
throws org.apache.http.HttpException,
IOException
response for handling
requests from unsupported clients.
org.apache.http.HttpException
IOException
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||