2 Copyright (C) 2000-2005 SKYRIX Software AG
4 This file is part of SOPE.
6 SOPE is free software; you can redistribute it and/or modify it under
7 the terms of the GNU Lesser General Public License as published by the
8 Free Software Foundation; either version 2, or (at your option) any
11 SOPE is distributed in the hope that it will be useful, but WITHOUT ANY
12 WARRANTY; without even the implied warranty of MERCHANTABILITY or
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
14 License for more details.
16 You should have received a copy of the GNU Lesser General Public
17 License along with SOPE; see the file COPYING. If not, write to the
18 Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
24 static command_rec ngobjweb_cmds[] = {
27 ngobjweb_set_sns_port,
31 "the path of the Unix domain address to use (eg /tmp/.snsd)"
35 ngobjweb_set_app_port,
39 "the path of the Unix domain address to use (eg /tmp/.snsd)"
43 ngobjweb_set_app_prefix,
47 "any prefix that is before the app name (eg /MyDir with /MyDir/MyApp.woa)"
51 ngobjweb_set_use_http,
55 "use HTTP protocol to query snsd (on,off) ?"
61 static handler_rec ngobjweb_handlers[] = {
62 { "ngobjweb-adaptor", ngobjweb_handler },
66 static void ngobjweb_init(server_rec *_server, pool *_pool) {
69 module ngobjweb_module = {
70 STANDARD_MODULE_STUFF,
71 ngobjweb_init, /* initializer */
72 ngobjweb_create_dir_config, /* dir config creater */
73 ngobjweb_merge_dir_configs, /* dir merger --- default is to override */
74 NULL, /* server config */
75 NULL, /* merge server config */
76 ngobjweb_cmds, /* command table */
77 ngobjweb_handlers, /* handlers */
78 NULL, /* filename translation */
79 NULL, /* check_user_id */
80 NULL, /* check auth */
81 NULL, /* check access */
82 NULL, /* type_checker */
85 NULL /* header parser */
88 static void ngobjweb_register_hooks(apr_pool_t *p) {
89 ap_hook_handler(ngobjweb_handler, NULL, NULL, APR_HOOK_LAST);
92 module AP_MODULE_DECLARE_DATA ngobjweb_module = {
93 STANDARD20_MODULE_STUFF,
94 ngobjweb_create_dir_config, /* create per-directory config structures */
95 ngobjweb_merge_dir_configs, /* merge per-directory config structures */
96 NULL, /* create per-server config structures */
97 NULL, /* merge per-server config structures */
98 ngobjweb_cmds, /* command handlers */
99 ngobjweb_register_hooks /* register hooks */