public class

NoOpServlet

extends HttpServlet
java.lang.Object
   ↳ javax.servlet.GenericServlet
     ↳ javax.servlet.http.HttpServlet
       ↳ com.atlassian.plugin.refimpl.servlet.NoOpServlet

Class Overview

NoOpServlet is a dummy servlet used only to provide a servlet mapping for url patterns that don't have any. This is necessary as some application servers like WebSphere 6.1.0.5 returns a 404 if there are no mapped servlet before applying filters to the request which could potentially change the URL mapped to a valid servlet. For example, the URLRewriter filter does this. Hence this dummy servlet should never handle any requests.

If this servlet receives a request, it will simply log all relevant information from the request that may be of help in determining why the request was received, as this would not be the desired result.

Summary

Public Constructors
NoOpServlet()
Public Methods
void service(ServletRequest servletRequest, ServletResponse servletResponse)
[Expand]
Inherited Methods
From class javax.servlet.http.HttpServlet
From class javax.servlet.GenericServlet
From class java.lang.Object
From interface javax.servlet.Servlet
From interface javax.servlet.ServletConfig

Public Constructors

public NoOpServlet ()

Public Methods

public void service (ServletRequest servletRequest, ServletResponse servletResponse)

Throws
ServletException
IOException