LimeWire Consolidated API

com.limegroup.gnutella.uploader
Interface HTTPUploadSessionManager

All Known Implementing Classes:
HTTPUploadManager

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

getOrCreateUploader

HTTPUploader getOrCreateUploader(org.apache.http.HttpRequest request,
                                 org.apache.http.protocol.HttpContext context,
                                 UploadType type,
                                 String filename)
Returns an uploader for request. If the previous request was for filename as well an existing uploader is returned; otherwise a new uploader is created.


enqueue

HTTPUploadSessionManager.QueueStatus enqueue(org.apache.http.protocol.HttpContext context,
                                             org.apache.http.HttpRequest request)
Add request to the queue of uploaders.

Returns:
the queue status
See Also:
UploadSlotManager

addAcceptedUploader

void addAcceptedUploader(HTTPUploader uploader,
                         org.apache.http.protocol.HttpContext context)
Adds an accepted HTTPUploader to the internal list of active downloads.


sendResponse

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.


handleFreeLoader

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
Sets a response code and entity on response for handling requests from unsupported clients.

Throws:
org.apache.http.HttpException
IOException

LimeWire Consolidated API

Copyright © 2009. All Rights Reserved.