src/main/java/de/uapcore/lightpit/AbstractServlet.java

changeset 180
009700915269
parent 179
623c340058f3
child 182
53f0e2685ad5
--- a/src/main/java/de/uapcore/lightpit/AbstractServlet.java	Tue Jan 05 19:19:31 2021 +0100
+++ b/src/main/java/de/uapcore/lightpit/AbstractServlet.java	Wed Jan 06 15:39:56 2021 +0100
@@ -1,7 +1,7 @@
 /*
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
  *
- * Copyright 2018 Mike Becker. All rights reserved.
+ * Copyright 2021 Mike Becker. All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * modification, are permitted provided that the following conditions are met:
@@ -68,14 +68,6 @@
     private final Map<HttpMethod, Map<PathPattern, Method>> mappings = new HashMap<>();
 
     /**
-     * Returns the name of the resource bundle associated with this servlet.
-     *
-     * @return the resource bundle base name
-     */
-    protected abstract String getResourceBundleName();
-
-
-    /**
      * Creates a set of data access objects for the specified connection.
      *
      * @param connection the SQL connection
@@ -414,7 +406,6 @@
         final String fullPath = req.getServletPath() + Optional.ofNullable(req.getPathInfo()).orElse("");
         req.setAttribute(Constants.REQ_ATTR_BASE_HREF, baseHref(req));
         req.setAttribute(Constants.REQ_ATTR_PATH, fullPath);
-        req.setAttribute(Constants.REQ_ATTR_RESOURCE_BUNDLE, getResourceBundleName());
 
         // if this is an error path, bypass the normal flow
         if (fullPath.startsWith("/error/")) {

mercurial