01: /* Copyright (c) 2001 - 2007 TOPP - www.openplans.org. All rights reserved.
02: * This code is licensed under the GPL 2.0 license, availible at the root
03: * application directory.
04: */
05: package org.vfny.geoserver.servlets;
06:
07: import java.io.IOException;
08: import javax.servlet.ServletException;
09: import javax.servlet.http.HttpServlet;
10: import javax.servlet.http.HttpServletRequest;
11: import javax.servlet.http.HttpServletResponse;
12:
13: /**
14: * This can be mapped to every URL we don't want to serve even if located in
15: * public folder of the web application
16: *
17: * @author aaime
18: *
19: */
20: public class FileHiderServlet extends HttpServlet {
21: protected void doGet(HttpServletRequest request,
22: HttpServletResponse response) throws ServletException,
23: IOException {
24: response.sendError(404);
25: }
26: }
|