NoResponse a dummy and harmless servlet required for supporting Servlet 2.3 public...
authordayash <dayash>
Sat, 18 Jan 2003 07:23:18 +0000 (07:23 +0000)
committerdayash <dayash>
Sat, 18 Jan 2003 07:23:18 +0000 (07:23 +0000)
It will NOT interfere when SecurityFilter is used with with any Servlet2.3 compliant Application server.

src/share/org/securityfilter/dummy/NoResponseServlet.java [new file with mode: 0644]

diff --git a/src/share/org/securityfilter/dummy/NoResponseServlet.java b/src/share/org/securityfilter/dummy/NoResponseServlet.java
new file mode 100644 (file)
index 0000000..973ebd8
--- /dev/null
@@ -0,0 +1,82 @@
+package org.securityfilter.dummy;
+
+/*
+ * $Header: /cvsroot/securityfilter/securityfilter/src/share/org/securityfilter/dummy/Attic/NoResponseServlet.java,v 1.1 2003/01/18 07:23:18 dayash Exp $
+ * $Revision: 1.1 $
+ * $Date: 2003/01/18 07:23:18 $
+ *
+ * ====================================================================
+ * The SecurityFilter Software License, Version 1.1
+ *
+ * (this license is derived and fully compatible with the Apache Software
+ * License - see http://www.apache.org/LICENSE.txt)
+ *
+ * Copyright (c) 2002 SecurityFilter.org. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * 1. Redistributions of source code must retain the above copyright
+ *    notice, this list of conditions and the following disclaimer.
+ *
+ * 2. Redistributions in binary form must reproduce the above copyright
+ *    notice, this list of conditions and the following disclaimer in
+ *    the documentation and/or other materials provided with the
+ *    distribution.
+ *
+ * 3. The end-user documentation included with the redistribution,
+ *    if any, must include the following acknowledgment:
+ *       "This product includes software developed by
+ *        SecurityFilter.org (http://www.securityfilter.org/)."
+ *    Alternately, this acknowledgment may appear in the software itself,
+ *    if and wherever such third-party acknowledgments normally appear.
+ *
+ * 4. The name "SecurityFilter" must not be used to endorse or promote
+ *    products derived from this software without prior written permission.
+ *    For written permission, please contact license@securityfilter.org .
+ *
+ * 5. Products derived from this software may not be called "SecurityFilter",
+ *    nor may "SecurityFilter" appear in their name, without prior written
+ *    permission of SecurityFilter.org.
+ *
+ * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
+ * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+ * DISCLAIMED.  IN NO EVENT SHALL THE SECURITY FILTER PROJECT OR
+ * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
+ * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+ * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
+ * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ * ====================================================================
+ */
+
+import javax.servlet.http.HttpServlet;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.servlet.ServletException;
+import java.io.IOException;
+
+/**
+ * SecurityFilter provides authentication and authorization services.
+ *
+ * @author Max Cooper (max@maxcooper.com)
+ * @author Daya Sharma (iamdaya@yahoo.com, billydaya@sbcglobal.net)
+ * @author Torgeir Veimo (torgeir@pobox.com)
+ * @version $Revision: 1.1 $ $Date: 2003/01/18 07:23:18 $
+ */
+
+public class NoResponseServlet extends HttpServlet {
+
+    protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
+        doGet(req, resp);
+    }
+
+    protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
+        return;
+    }
+}