public class

ConfluenceServletDispatcher

extends ServletDispatcher
java.lang.Object
   ↳ javax.servlet.GenericServlet
     ↳ javax.servlet.http.HttpServlet
       ↳ com.opensymphony.webwork.dispatcher.ServletDispatcher
         ↳ com.atlassian.confluence.servlet.ConfluenceServletDispatcher

Class Overview

This action sets the max size for MultipartRequests to be Integer.MAX_VALUE if the name of the action is "restore.action"

Summary

[Expand]
Inherited Constants
From interface com.opensymphony.webwork.WebWorkStatics
[Expand]
Inherited Fields
From class com.opensymphony.webwork.dispatcher.ServletDispatcher
Public Constructors
ConfluenceServletDispatcher()
Public Methods
void serviceAction(HttpServletRequest request, HttpServletResponse response, String namespace, String actionName, Map requestMap, Map parameterMap, Map sessionMap, Map applicationMap)
This method basically contains the same code as the super method.
Protected Methods
HttpServletRequest wrapRequest(HttpServletRequest request)
[Expand]
Inherited Methods
From class com.opensymphony.webwork.dispatcher.ServletDispatcher
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 ConfluenceServletDispatcher ()

Public Methods

public void serviceAction (HttpServletRequest request, HttpServletResponse response, String namespace, String actionName, Map requestMap, Map parameterMap, Map sessionMap, Map applicationMap)

This method basically contains the same code as the super method. The only difference is how logging is done. Instead of adding a reference to a possible ConfigurationException to the request attributes, which leads at least Tomcat to thinking a server error occurred as opposed to a 404, it just logs an error stating the given action was not found. Only if you set the log level to DEBUG you get the full stack trace. This should prevent log file pollution with stack traces for errors that are basically only 404s and will actually return a 404 error to the browser instead of a 500. (CONF-10393)

Protected Methods

protected HttpServletRequest wrapRequest (HttpServletRequest request)

Throws
IOException