Package sulley :: Module sessions :: Class web_interface_handler
[show private | hide private]
[frames | no frames]

Class web_interface_handler

BaseRequestHandler --+        
                     |        
  StreamRequestHandler --+    
                         |    
    BaseHTTPRequestHandler --+
                             |
                            web_interface_handler


Method Summary
  __init__(self, request, client_address, server)
  commify(self, number)
  do_everything(self)
  do_GET(self)
  do_HEAD(self)
  do_POST(self)
  log_error(self, *args)
Log an error.
  log_message(self, *args, **kwargs)
  version_string(self)
Return the server software version string.
  view_crash(self, path)
  view_index(self)
  view_pcap(self, path)
    Inherited from BaseHTTPRequestHandler
  address_string(self)
Return the client address formatted for logging.
  date_time_string(self)
Return the current date and time formatted for a message header.
  end_headers(self)
Send the blank line ending the MIME headers.
  handle(self)
Handle multiple requests if necessary.
  handle_one_request(self)
Handle a single HTTP request.
  log_date_time_string(self)
Return the current time formatted for logging.
  log_request(self, code, size)
Log an accepted request.
  parse_request(self)
Parse a request (internal).
  send_error(self, code, message)
Send and log an error reply.
  send_header(self, keyword, value)
Send a MIME header.
  send_response(self, code, message)
Send the response header and log the response code.
    Inherited from StreamRequestHandler
  finish(self)
  setup(self)

Class Variable Summary
    Inherited from BaseHTTPRequestHandler
str error_message_format = '<head>\n<title>Error response</t...
list monthname = [None, 'Jan', 'Feb', 'Mar', 'Apr', 'May', 'J...
str protocol_version = 'HTTP/1.0'
dict responses = {400: ('Bad request', 'Bad request syntax or...
str server_version = 'BaseHTTP/0.3'
str sys_version = 'Python/2.4.2'
list weekdayname = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat',...
    Inherited from StreamRequestHandler
int rbufsize = -1                                                                    
int wbufsize = 0                                                                     

Method Details

log_error(self, *args, **kwargs)

Log an error.

This is called when a request cannot be fulfilled. By default it passes the message on to log_message().

Arguments are the same as for log_message().

XXX This should go to the separate error log.
Overrides:
BaseHTTPServer.BaseHTTPRequestHandler.log_error (inherited documentation)

version_string(self)

Return the server software version string.
Overrides:
BaseHTTPServer.BaseHTTPRequestHandler.version_string (inherited documentation)

Generated by Epydoc 2.1 on Fri Jul 27 17:40:03 2007 http://epydoc.sf.net