Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 14 additions & 2 deletions plugins/experimental/esi/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ AM_CXXFLAGS = \
-Wno-deprecated

pkglib_LTLIBRARIES = esi.la
lib_LTLIBRARIES = libesi.la
lib_LTLIBRARIES = libesi.la libtest.la

check_PROGRAMS = docnode_test parser_test processor_test utils_test vars_test

Expand All @@ -42,6 +42,18 @@ libesi_la_SOURCES = \
lib/Variables.cc \
lib/gzip.cc

libtest_la_SOURCES = \
lib/DocNode.cc \
lib/EsiParser.cc \
lib/EsiProcessor.cc \
lib/Expression.cc \
lib/FailureInfo.cc \
test/TestHandlerManager.cc \
lib/Stats.cc \
lib/Utils.cc \
lib/Variables.cc \
lib/gzip.cc

esi_la_SOURCES = \
fetcher/HttpDataFetcherImpl.cc \
plugin.cc \
Expand All @@ -55,7 +67,7 @@ docnode_test_LDADD = libesi.la -ldl -lz -lpthread
parser_test_SOURCES = test/parser_test.cc test/print_funcs.cc
parser_test_LDADD = libesi.la -ldl -lz -lpthread
processor_test_SOURCES = test/processor_test.cc test/HandlerMap.cc test/StubIncludeHandler.cc test/print_funcs.cc
processor_test_LDADD = libesi.la -ldl -lz -lpthread
processor_test_LDADD = libtest.la -ldl -lz -lpthread
utils_test_SOURCES = test/utils_test.cc test/print_funcs.cc
utils_test_LDADD = libesi.la -ldl -lz -lpthread
vars_test_SOURCES = test/vars_test.cc test/print_funcs.cc
Expand Down
42 changes: 42 additions & 0 deletions plugins/experimental/esi/test/TestHandlerManager.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
/** @file

A brief file description

@section license License

Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/

#include "HandlerManager.h"
#include "HandlerMap.h"

using namespace EsiLib;

void
HandlerManager::loadObjects(const Utils::KeyValueMap &handlers) {
}

SpecialIncludeHandler *
HandlerManager::getHandler(Variables &esi_vars, Expression &esi_expr, HttpDataFetcher &fetcher,
const std::string &id) const {
StubIncludeHandler *handler = new StubIncludeHandler(esi_vars, esi_expr, fetcher);
gHandlerMap[id] = handler;
return handler;
}

HandlerManager::~HandlerManager() {
}
Loading