Class SimpleDisplayServlet
- java.lang.Object
-
- com.atlassian.confluence.servlet.simpledisplay.SimpleDisplayServlet
-
- All Implemented Interfaces:
ServletManager
public class SimpleDisplayServlet extends Object implements ServletManager
This servlet uses thePathConverterManager
to convert the incoming (friendly) url into a url that maps to an struts action. Its wrapped by spring so its auto wired.
-
-
Field Summary
Fields Modifier and Type Field Description protected static String
HOMEPAGE_PATH
-
Constructor Summary
Constructors Constructor Description SimpleDisplayServlet()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.atlassian.config.bootstrap.AtlassianBootstrapManager
getBootstrapManager()
PathConverterManager
getPathConverterManager()
void
service(SpringManagedServlet springManagedServlet, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse)
void
servletDestroyed(SpringManagedServlet springManagedServlet)
void
servletInitialised(SpringManagedServlet springManagedServlet, javax.servlet.ServletConfig servletConfig)
void
setPathConverterManager(PathConverterManager pathConverterManager)
static String
stripSlashes(String path)
-
-
-
Field Detail
-
HOMEPAGE_PATH
protected static final String HOMEPAGE_PATH
- See Also:
- Constant Field Values
-
-
Method Detail
-
servletDestroyed
public void servletDestroyed(SpringManagedServlet springManagedServlet)
- Specified by:
servletDestroyed
in interfaceServletManager
-
servletInitialised
public void servletInitialised(SpringManagedServlet springManagedServlet, javax.servlet.ServletConfig servletConfig) throws javax.servlet.ServletException
- Specified by:
servletInitialised
in interfaceServletManager
- Throws:
javax.servlet.ServletException
-
service
public void service(SpringManagedServlet springManagedServlet, javax.servlet.http.HttpServletRequest httpServletRequest, javax.servlet.http.HttpServletResponse httpServletResponse) throws javax.servlet.ServletException, IOException
- Specified by:
service
in interfaceServletManager
- Throws:
javax.servlet.ServletException
IOException
-
stripSlashes
public static String stripSlashes(String path)
- Returns:
- the path with any leading or trailing slashes stripped. If path is null returns an empty string.
-
getPathConverterManager
public PathConverterManager getPathConverterManager()
-
setPathConverterManager
public void setPathConverterManager(PathConverterManager pathConverterManager)
-
getBootstrapManager
protected com.atlassian.config.bootstrap.AtlassianBootstrapManager getBootstrapManager()
-
-