Package tlib :: Package base :: Module ApiMockServer :: Class ApiMockServer |
[hide private]
[frames] | no frames]

# Class ApiMockServer

source code

        SocketServer.ThreadingMixIn --+
                                      |
    SocketServer.BaseServer --+       |
                              |       |
         SocketServer.TCPServer --+   |
                                  |   |
          BaseHTTPServer.HTTPServer --+
                                      |
                                     ApiMockServer

Instance Methods | [hide private]
__init__(self, logger) Constructor. | source code
get_lan_ip(self) | source code
Inherited from `SocketServer.ThreadingMixIn`: `process_request`, `process_request_thread` Inherited from `BaseHTTPServer.HTTPServer`: `server_bind` Inherited from `SocketServer.TCPServer`: `close_request`, `fileno`, `get_request`, `server_activate`, `server_close`, `shutdown_request` Inherited from `SocketServer.BaseServer`: `finish_request`, `handle_error`, `handle_request`, `handle_timeout`, `serve_forever`, `shutdown`, `verify_request` Inherited from `SocketServer.BaseServer` (private): `_handle_request_noblock`

Static Methods | [hide private]
get_interface_ip(ifname) | source code

Class Variables | [hide private]
| server_address = ``(``'``0.0.0.0``'``,` 8000`)``
| json_data = ``{``}``
| logger = `None`
| my_ip = `None`
Inherited from `SocketServer.ThreadingMixIn`: `daemon_threads` Inherited from `BaseHTTPServer.HTTPServer`: `allow_reuse_address` Inherited from `SocketServer.TCPServer`: `address_family`, `request_queue_size`, `socket_type` Inherited from `SocketServer.BaseServer`: `timeout`

Method Details | [hide private]

### __init__(self, logger) (Constructor) | source code
Constructor. May be extended, do not override. Overrides: SocketServer.BaseServer.__init__ (inherited documentation)