2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. See the NOTICE file distributed with
4 * this work for additional information regarding copyright ownership.
5 * The ASF licenses this file to You under the Apache License, Version 2.0
6 * (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
18 /***************************************************************************
19 * Description: Bi-directional protocol. *
20 * Author: Costin <costin@costin.dnt.ro> *
21 * Author: Gal Shachor <shachor@il.ibm.com> *
22 * Author: Henri Gomez <hgomez@apache.org> *
23 * Version: $Revision: 611589 $ *
24 ***************************************************************************/
26 #include "jk_ajp13_worker.h"
29 /* -------------------- Method -------------------- */
30 static int JK_METHOD validate(jk_worker_t *pThis,
32 jk_worker_env_t *we, jk_logger_t *l)
36 rc = ajp_validate(pThis, props, we, l, AJP13_PROTO);
42 static int JK_METHOD init(jk_worker_t *pThis,
44 jk_worker_env_t *we, jk_logger_t *l)
49 rc = ajp_init(pThis, props, we, l, AJP13_PROTO);
55 static int JK_METHOD destroy(jk_worker_t **pThis, jk_logger_t *l)
59 rc = ajp_destroy(pThis, l, AJP13_PROTO);
65 static int JK_METHOD get_endpoint(jk_worker_t *pThis,
66 jk_endpoint_t **pend, jk_logger_t *l)
70 rc = ajp_get_endpoint(pThis, pend, l, AJP13_PROTO);
75 int JK_METHOD ajp13_worker_factory(jk_worker_t **w,
76 const char *name, jk_logger_t *l)
81 if (ajp_worker_factory(w, name, l) == JK_FALSE)
84 aw = (*w)->worker_private;
85 aw->proto = AJP13_PROTO;
87 aw->worker.validate = validate;
88 aw->worker.init = init;
89 aw->worker.get_endpoint = get_endpoint;
90 aw->worker.destroy = destroy;
93 return JK_AJP13_WORKER_TYPE;