Package com.atlassian.confluence.servlet
Class ConfluenceServletDispatcher
- java.lang.Object
-
- javax.servlet.GenericServlet
-
- javax.servlet.http.HttpServlet
-
- com.opensymphony.webwork.dispatcher.ServletDispatcher
-
- 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.ServletDispatcherThis 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 Modifier and Type Field Description static StringHTTP_REQUEST_ATTR_KEY_WEB_INTERFACE_CONTEXT
-
Constructor Summary
Constructors Constructor Description ConfluenceServletDispatcher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidserviceAction(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.HttpServletRequestwrapRequest(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
-
-
-
-
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
-
-
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:
serviceActionin classcom.opensymphony.webwork.dispatcher.ServletDispatcher
-
wrapRequest
protected javax.servlet.http.HttpServletRequest wrapRequest(javax.servlet.http.HttpServletRequest request) throws IOException- Overrides:
wrapRequestin classcom.opensymphony.webwork.dispatcher.ServletDispatcher- Throws:
IOException
-
-