xo::ProtocolHandler instproc register (public)
<instance of xo::ProtocolHandler> register
Defined in packages/xotcl-core/tcl/50-protocol-handler-procs.tcl
Register the NaviServer/AOLserver filter and traces. This method is typically called via *-init.tcl. Note that the specified url must not have an entry in the site-nodes, otherwise the OpenACS request processor performs always the cockie-based authorization. To change that, it would be necessary to register the filter before the request processor (currently, there are no hooks for that).
- Partial Call Graph (max 5 caller/called nodes):
- Testcases:
- No testcase defined.
Source code: set filter_url ${:url}* set url ${:url}/* set root [string trimright ${:url} /] # # Methods defined by RFC 2086 (19.6.1 Additional Request Methods): # # LINK UNLINK PATCH # # Methods defined by RFC 2616: # # OPTIONS GET HEAD POST PUT DELETE TRACE CONNECT # # Methods defined by RF C2518: # # PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK # # Methods defined by RFC 3253 (versioning extensions): # # VERSION-CONTROL REPORT CHECKOUT CHECKIN UNCHECKOUT # MKWORKSPACE UPDATE LABEL MERGE BASELINE-CONTROL # MKACTIVITY # # Methods defined by RFC 3648 (ordered collections): # # ORDERPATCH # # Methods defined by RFC 3744 (WebDAV): # # ACL REPORT # # Methods defined by RFC 4437 (redirect reference resources): # # MKREDIRECTREF UPDATEREDIRECTREF # # Methods defined by RFC $791 (CalDAV): # # MKCALENDAR # # Methods defined by RFC 4918 (HTTP Extensions): # # COPY LOCK MKCOL MOVE PROPFIND PROPPATCH UNLOCK # # Methods defined by RFC 5323 (WebDAV SEARCH): # # SEARCH # # Methods defined by RFC 5789: # # PATCH # foreach method { GET HEAD PUT POST MKCOL COPY MOVE PROPFIND PROPPATCH DELETE LOCK UNLOCK OPTIONS REPORT } { ns_register_filter preauth $method $filter_url [self] ns_register_filter preauth $method $root [self] ns_register_proc $method $url [self] handle_request ns_register_proc $method $root [self] handle_request :log "ns_register_filter preauth $method $filter_url [self]" :log "ns_register_filter preauth $method $root [self]" :log "ns_register_proc $method $url [self] handle_request" :log "ns_register_proc $method $root [self] handle_request" } ns_register_proc OPTIONS / ::xo::minimalProctocolHandler OPTIONS ns_register_proc PROPFIND / ::xo::minimalProctocolHandler PROPFINDXQL Not present: Generic, PostgreSQL, Oracle