univention.admin.rest.server package

univention.admin.rest.server package

class univention.admin.rest.server.Gateway(application, request, **kwargs)[source]

Bases: tornado.web.RequestHandler

A server which acts as proxy to multiple processes in different languages

TODO: Implement authentication via PAM TODO: Implement ACL handling (restriction on certain paths for certain users/groups) TODO: Implement a SAML service provider TODO: Implement management of modules

child_id = None
PROCESSES = {}
SOCKETS = {}
set_default_headers()[source]

Override this to set HTTP headers at the beginning of the request.

For example, this is the place to set a custom Server header. Note that setting such headers in the normal flow of request processing may not do what you want, since headers may be reset during error handling.

get()[source]
post()[source]
put()[source]
delete()[source]
patch()[source]
options()[source]
select_language()[source]
classmethod main()[source]
classmethod start_child(child_id)[source]
classmethod start_server(socks)[source]
classmethod get_locale(language)[source]
classmethod get_socket_for_locale(language)[source]
classmethod start_processes(num_processes=1, start_port=9979)[source]
classmethod register_signal_handlers()[source]
classmethod signal_handler_reload(sig, frame)[source]
classmethod signal_handler_stop(sig, frame)[source]
classmethod safe_kill(pid, signo)[source]