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, 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
static String HTTP_REQUEST_ATTR_KEY_WEB_INTERFACE_CONTEXT
           
 
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, String namespace, String actionName, Map requestMap, Map parameterMap, Map sessionMap, 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
 

Field Detail

HTTP_REQUEST_ATTR_KEY_WEB_INTERFACE_CONTEXT

public static final String HTTP_REQUEST_ATTR_KEY_WEB_INTERFACE_CONTEXT
See Also:
Constant Field Values
Constructor Detail

ConfluenceServletDispatcher

public ConfluenceServletDispatcher()
Method Detail

serviceAction

public void serviceAction(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.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) It also places the actions webInterfaceContext into the request with key HTTP_REQUEST_ATTR_KEY_WEB_INTERFACE_CONTEXT

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

wrapRequest

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


Copyright © 2003-2013 Atlassian. All Rights Reserved.