Package AccessGrid :: Module DataStore :: Class HTTPTransferServer
[show private | hide private]
[frames | no frames]

Class HTTPTransferServer

BaseServer --+        
             |        
     TCPServer --+    
                 |    
        HTTPServer --+
                     |
    TransferServer --+
                     |
                    HTTPTransferServer


A HTTPTransferServer is a HTTP-based implementation of a TransferServer.

Note that most of the work is done in HTTPTransferHandler.
Method Summary
  __init__(self, address)
  GetDownloadDescriptor(self, prefix, path)
Return the download descriptor for this transfer server.
  GetIdentityToken(self, transferHandler)
Create an identity token for this HTTP-based transfer.
  GetUploadDescriptor(self, prefix)
Return the upload descriptor for this transfer server.
  run(self)
  stop(self)
  thread_run(self)
thread_run is the server thread's main function.
    Inherited from HTTPServer
  server_bind(self)
Override server_bind to store the server name.
    Inherited from TCPServer
  close_request(self, request)
Called to clean up an individual request.
  fileno(self)
Return socket file number.
  get_request(self)
Get the request and client address from the socket.
  server_activate(self)
Called by constructor to activate the server.
  server_close(self)
Called to clean-up the server.
    Inherited from TransferServer
  LookupPrefix(self, prefix)
  LookupUploadInformation(self, transfer_key, file_num)
Look up the information for transfer_key and file_num in the manifest.
  RegisterManifest(self, manifest)
A client has sent a POST to /<prefix>/manifest to initiate an upload.
  RegisterPrefix(self, prefix, handler)

Class Variable Summary
    Inherited from HTTPServer
int allow_reuse_address = 1                                                                     
    Inherited from TCPServer
int address_family = 2                                                                     
int request_queue_size = 5                                                                     
int socket_type = 1                                                                     

Method Details

GetDownloadDescriptor(self, prefix, path)

Return the download descriptor for this transfer server.

Must be implemented by the protocol-specific subclass.
Overrides:
AccessGrid.DataStore.TransferServer.GetDownloadDescriptor (inherited documentation)

GetIdentityToken(self, transferHandler)

Create an identity token for this HTTP-based transfer.

The token will contain the X-Client-DN header if there is one.

GetUploadDescriptor(self, prefix)

Return the upload descriptor for this transfer server.

Must be implemented by the protocol-specific subclass.
Overrides:
AccessGrid.DataStore.TransferServer.GetUploadDescriptor (inherited documentation)

thread_run(self)

thread_run is the server thread's main function.

Generated by Epydoc 2.1 on Thu Apr 14 16:39:29 2005 http://epydoc.sf.net