public void service()

in apps/example2/src/main/java/org/apache/commons/chain2/apps/example/ExampleServlet.java [73:92]


    public void service(HttpServletRequest request,
                        HttpServletResponse response)
        throws IOException {

        CatalogFactory<String, Object, ServletWebContext<String, Object>> factory =
                CatalogFactoryBase.getInstance();
        Catalog<String, Object, ServletWebContext<String, Object>> catalog =
                factory.getCatalog(servletName);

        if (catalog == null) {
            catalog = factory.getCatalog();
        }

        ServletWebContext<String, Object> context =
            new ServletWebContextBase(getServletContext(), request, response);

        Command<String, Object, ServletWebContext<String, Object>> command = catalog.
                <Command<String, Object, ServletWebContext<String, Object>>>getCommand("COMMAND_MAPPER");
        command.execute(context);
    }