com.atlassian.confluence.servlet
Class ConfluenceServletDispatcher

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by com.opensymphony.webwork.dispatcher.ServletDispatcher
              extended by com.atlassian.confluence.servlet.ConfluenceServletDispatcher
All Implemented Interfaces:
com.opensymphony.webwork.WebWorkStatics, java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ConfluenceServletDispatcher
extends com.opensymphony.webwork.dispatcher.ServletDispatcher

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

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.opensymphony.webwork.WebWorkStatics
HTTP_REQUEST, HTTP_RESPONSE, PAGE_CONTEXT, SERLVET_DISPATCHER, SERVLET_CONFIG, SERVLET_DISPATCHER
 
Constructor Summary
ConfluenceServletDispatcher()
           
 
Method Summary
 void serviceAction(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.String namespace, java.lang.String actionName, java.util.Map requestMap, java.util.Map parameterMap, java.util.Map sessionMap, java.util.Map applicationMap)
          This method basically contains the same code as the super method.
protected  javax.servlet.http.HttpServletRequest wrapRequest(javax.servlet.http.HttpServletRequest request)
           
 
Methods inherited from class com.opensymphony.webwork.dispatcher.ServletDispatcher
createContextMap, getActionName, getActionName, getApplicationMap, getMaxSize, getNameSpace, getNamespaceFromServletPath, getParameterMap, getRequestMap, getSaveDir, getSessionMap, init, sendError, service
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doGet, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfluenceServletDispatcher

public ConfluenceServletDispatcher()
Method Detail

serviceAction

public void serviceAction(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response,
                          java.lang.String namespace,
                          java.lang.String actionName,
                          java.util.Map requestMap,
                          java.util.Map parameterMap,
                          java.util.Map sessionMap,
                          java.util.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)

Overrides:
serviceAction in class com.opensymphony.webwork.dispatcher.ServletDispatcher

wrapRequest

protected javax.servlet.http.HttpServletRequest wrapRequest(javax.servlet.http.HttpServletRequest request)
                                                     throws java.io.IOException
Overrides:
wrapRequest in class com.opensymphony.webwork.dispatcher.ServletDispatcher
Throws:
java.io.IOException


Copyright © 2003-2010 Atlassian. All Rights Reserved.