@@ -0,0 +1,2788 @@
+/**%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage tools.descartes.petsupplystore.webui.servlet;%0A%0Aimport java.io.IOException;%0Aimport java.util.HashMap;%0A%0Aimport javax.servlet.ServletException;%0Aimport javax.servlet.annotation.WebServlet;%0Aimport javax.servlet.http.HttpServlet;%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0Aimport javax.ws.rs.client.Entity;%0Aimport javax.ws.rs.core.GenericType;%0Aimport javax.ws.rs.core.MediaType;%0Aimport javax.ws.rs.core.Response;%0A%0Aimport tools.descartes.petsupplystore.entities.ImageSize;%0Aimport tools.descartes.petsupplystore.registryclient.Service;%0Aimport tools.descartes.petsupplystore.registryclient.loadbalancers.ServiceLoadBalancer;%0Aimport tools.descartes.petsupplystore.registryclient.rest.LoadBalancedImageOperations;%0Aimport tools.descartes.petsupplystore.registryclient.rest.LoadBalancedStoreOperations;%0A%0A/**%0A * Servlet implementation for the web view of %22Index%22%0A * %0A * @author Andre Bauer%0A */%0A@WebServlet(%22/index%22)%0Apublic class IndexServlet extends AbstractUIServlet %7B%0A%0A%09private static final long serialVersionUID = 1L;%0A%0A%09/**%0A%09 * @see HttpServlet#HttpServlet()%0A%09 */%0A%09public IndexServlet() %7B%0A%09%09super();%0A%09%7D%0A%0A%09/**%0A%09 * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse%0A%09 *      response)%0A%09 */%0A%09protected void doGet(HttpServletRequest request, HttpServletResponse response)%0A%09%09%09throws ServletException, IOException %7B%0A%09%09checkforCookie(request, response);%0A%09%09request.setAttribute(%22CategoryList%22, LoadBalancedStoreOperations.getCategories());%0A%09%09request.setAttribute(%22title%22, %22Pet Supply Store Home%22);%0A%09%09request.setAttribute(%22login%22, LoadBalancedStoreOperations.isLoggedIn(getSessionBlob(request)));%0A%0A%09%09request.setAttribute(%22storeMainImage%22, LoadBalancedImageOperations.getWebImage(%22front%22, ImageSize.MAIN_IMAGE));%0A%09%09request.setAttribute(%22storeIcon%22, LoadBalancedImageOperations.getWebImage(%22icon%22, ImageSize.ICON));%0A%0A%09%09request.getRequestDispatcher(%22WEB-INF/pages/index.jsp%22).forward(request, response);%0A%09%7D%0A%0A%09/**%0A%09 * @see HttpServlet#doPost(HttpServletRequest request, HttpServletResponse%0A%09 *      response)%0A%09 */%0A%09protected void doPost(HttpServletRequest request, HttpServletResponse response)%0A%09%09%09throws ServletException, IOException %7B%0A%09%09doGet(request, response);%0A%09%7D%0A%0A%7D%0A

Revert "removed leftover stub"