src/main/java/de/uapcore/lightpit/modules/ProjectsModule.java

Wed, 13 May 2020 18:33:25 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 13 May 2020 18:33:25 +0200
changeset 41
4f1c026a8aab
child 42
f962ff9dd44e
permissions
-rw-r--r--

adds files for ProjectsModule

universe@41 1 /*
universe@41 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
universe@41 3 *
universe@41 4 * Copyright 2018 Mike Becker. All rights reserved.
universe@41 5 *
universe@41 6 * Redistribution and use in source and binary forms, with or without
universe@41 7 * modification, are permitted provided that the following conditions are met:
universe@41 8 *
universe@41 9 * 1. Redistributions of source code must retain the above copyright
universe@41 10 * notice, this list of conditions and the following disclaimer.
universe@41 11 *
universe@41 12 * 2. Redistributions in binary form must reproduce the above copyright
universe@41 13 * notice, this list of conditions and the following disclaimer in the
universe@41 14 * documentation and/or other materials provided with the distribution.
universe@41 15 *
universe@41 16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
universe@41 17 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
universe@41 18 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
universe@41 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
universe@41 20 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
universe@41 21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
universe@41 22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
universe@41 23 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
universe@41 24 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
universe@41 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
universe@41 26 * POSSIBILITY OF SUCH DAMAGE.
universe@41 27 *
universe@41 28 */
universe@41 29 package de.uapcore.lightpit.modules;
universe@41 30
universe@41 31
universe@41 32 import de.uapcore.lightpit.*;
universe@41 33 import de.uapcore.lightpit.dao.DataAccessObjects;
universe@41 34
universe@41 35 import javax.servlet.annotation.WebServlet;
universe@41 36 import javax.servlet.http.HttpServletRequest;
universe@41 37 import javax.servlet.http.HttpServletResponse;
universe@41 38
universe@41 39 @LightPITModule(
universe@41 40 bundleBaseName = "localization.projects",
universe@41 41 modulePath = "projects",
universe@41 42 defaultPriority = 20
universe@41 43 )
universe@41 44 @WebServlet(
universe@41 45 name = "ProjectsModule",
universe@41 46 urlPatterns = "/projects/*"
universe@41 47 )
universe@41 48 public final class ProjectsModule extends AbstractLightPITServlet {
universe@41 49
universe@41 50 @RequestMapping(method = HttpMethod.GET)
universe@41 51 public ResponseType handle(HttpServletRequest req, HttpServletResponse resp, DataAccessObjects dao) {
universe@41 52
universe@41 53 return ResponseType.HTML_FULL;
universe@41 54 }
universe@41 55 }

mercurial