32 &AFW_REQUEST_HANDLER_S_SINGLETON_KEY_HEAD,
37 "request handler head missing.",
48 &afw_s_uriPrefix, p, xctx);
50 &afw_s_requestHandlerType, p, xctx);
59 e->handler_type, xctx);
70 e->factory, e->properties, p, xctx);
73 if (!head->first_handler) {
74 head->first_handler = e;
76 head->last_handler->next = e;
78 head->last_handler = e;
81 for (e = head->first_handler, count = 0; e; e = e->next, count++);
82 head->last_handler->object_id =
85 &afw_s__AdaptiveRequestHandler_, head->last_handler->object_id, xctx);
90 " successfully started.",
Adaptive Framework Core Internal.
#define AFW_UTF8_FMT_ARG(A_STRING)
Convenience Macro for use with AFW_UTF8_FMT to specify arg.
#define AFW_UTF8_CONTEXTUAL_LABEL_FMT
Format string used for source location.
#define AFW_UTF8_FMT
Format string specifier used for afw_utf8_t.
apr_int64_t afw_integer_t
typedef for big signed int.
const afw_object_t * afw_environment_prepare_conf_type_properties(const afw_object_t *properties, afw_xctx_t *xctx)
Prepare properties for a conf type.
void * afw_environment_get_singleton(const afw_utf8_t *singleton_key, afw_xctx_t *xctx)
Get the singleton value.
const afw_request_handler_factory_t * afw_environment_get_request_handler_type(const afw_utf8_t *handler_type, afw_xctx_t *xctx)
Get the request_handler factory instance associated with handler type.
#define AFW_THROW_ERROR_FZ(code, xctx, format_z,...)
Macro used to set error and 0 rv in xctx and throw it.
#define AFW_LOG_FZ(priority, xctx, format_z,...)
Log an message to environment's log using a printf style format and parameters.
afw_number_integer_to_utf8(afw_integer_t i, const afw_pool_t *p, afw_xctx_t *xctx)
Convert an integer to utf8 in specified pool.
afw_object_old_get_property_as_utf8(const afw_object_t *instance, const afw_utf8_t *property_name, const afw_pool_t *p, afw_xctx_t *xctx)
Get an object's property value as a string in specified pool.
#define afw_pool_calloc_type(instance, type, xctx)
Macro to allocate cleared memory to hold type in pool.
#define afw_request_handler_factory_create_request_handler_cede_p(instance, properties, p, xctx)
Call method create_request_handler_cede_p of interface afw_request_handler_factory.
void afw_request_handler_internal_conf_type_create_cede_p(const afw_utf8_t *type, const afw_object_t *entry, const afw_utf8_t *source_location, const afw_pool_t *p, afw_xctx_t *xctx)
Configuration handler for entry type "requestHandler".
afw_runtime_env_set_object(const afw_object_t *object, afw_boolean_t overwrite, afw_xctx_t *xctx)
Set an object pointer in the environment's runtime objects.
Interface afw_object public struct.
Interface afw_pool public struct.
NFC normalized UTF-8 string.
Interface afw_xctx public struct.