%3 ::xotcl::Object ::xotcl::Object → getExitHandler → setExitHandler → unsetExitHandler __object_configureparameter __timediff abstract ad_doc ad_forward ad_proc asHTML check class db_0or1row db_1row debug destroy_on_cleanup ds extractConfigureArg filter filtersearch forward hasclass init invar isclass ismetaclass ismixin isobject istype log method mixin mset msg parametercmd proc procsearch qn self serialize set_instance_vars_defaults unknown vwait www-show-object ::xo::ProtocolHandler ::xo::ProtocolHandler GET OPTIONS PROPFIND PUT get_package_id handle_request http_date initialize log multiStatus multiStatusError multiStatusResponse preauth register set_user_id tcl_time_to_http_date tcl_time_to_iso8601 unknown ::xo::ProtocolHandler->::xotcl::Object ::xo::dav ::xo::dav ::xo::dav->::xo::ProtocolHandler ::caldav::CalDAV ::caldav::CalDAV DELETE GET OPTIONS PROPFIND PROPPATCH PUT REPORT aggregatedCalendarName calcCtag calcSyncToken calendar-multiget calendar-query calendarName calendar_ids debug generateResponse getETagByUID get_uid_from_href getcontent item_update parseRequest property=c-calendar-data property=c-calendar-description property=c-calendar-home-set property=c-calendar-timezone property=c-calendar-user-address-set property=c-supported-calendar-component-set property=cs-getctag property=d-current-user-principal property=d-current-user-privilege-set property=d-displayname property=d-getcontenttype property=d-getetag property=d-owner property=d-principal-URL property=d-principal-address property=d-principal-collection-set property=d-resourcetype property=d-supported-report-set property=d-sync-token property=ical-calendar-color property=ical-calendar-order request_error response returnXMLelement sync-collection unknown ::caldav::CalDAV->::xo::ProtocolHandler ::xowf::dav ::xowf::dav call_action get_package_id ::xowf::dav->::xo::dav

Class ::xo::ProtocolHandler

::xo::ProtocolHandler[i] create ... \
           [ -package package ] \
           [ -url url ]

Defined in

Class Relations

  • class: ::xotcl::Class[i]
  • superclass: ::xotcl::Object[i]
  • subclass: ::xo::dav[i], ::caldav::CalDAV[i]

Methods (to be applied on instances)

  • GET (scripted)

  • OPTIONS (scripted)

  • PROPFIND (scripted)

  • PUT (scripted)

  • get_package_id (scripted, public)

     <instance of xo::ProtocolHandler[i]> get_package_id

    Initialize the given package and return the package_id

    Returns:
    package_id

    Testcases:
    No testcase defined.
  • handle_request (scripted, public)

     <instance of xo::ProtocolHandler[i]> handle_request args \
        [ args... ]

    Process the incoming HTTP request. This method could be overloaded by the application and dispatches the HTTP requests.

    Parameters:
    args (required)

    Testcases:
    GET
  • http_date (scripted)

  • initialize (scripted, public)

     <instance of xo::ProtocolHandler[i]> initialize

    Setup connection object and authenticate user

    Testcases:
    GET
  • log (scripted)

  • multiStatus (scripted)

  • multiStatusError (scripted)

  • multiStatusResponse (scripted)

  • package (setter)

  • preauth (scripted, public)

     <instance of xo::ProtocolHandler[i]> preauth args [ args... ]

    Handle authorization. This method is called via ns_filter.

    Parameters:
    args (required)

    Testcases:
    GET
  • register (scripted, public)

     <instance of xo::ProtocolHandler[i]> register

    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).

    Testcases:
    No testcase defined.
  • set_user_id (scripted, public)

     <instance of xo::ProtocolHandler[i]> set_user_id

    Set user_id based on authentication header

    Testcases:
    GET
  • tcl_time_to_http_date (scripted)

  • tcl_time_to_iso8601 (scripted)

  • unknown (scripted, private)

     <instance of xo::ProtocolHandler[i]> unknown method args \
        [ args... ]

    Return connection information similar to ad_conn

    Parameters:
    method (required)
    args (required)

    Testcases:
    No testcase defined.
  • url (setter)