Package com.atlassian.confluence.core
Class DefaultContextPathHolder
- java.lang.Object
-
- com.atlassian.confluence.core.DefaultContextPathHolder
-
- All Implemented Interfaces:
ContextPathHolder
public class DefaultContextPathHolder extends Object implements ContextPathHolder
Serves the context path stored/managed by theBootstrapManager
(this value is kept up to date with every request that comes into the server).This is preferred over
HttpContext
as clients that use this will not require a request and secondly, the context path, being a static property, should not need to be resolved per request.
-
-
Constructor Summary
Constructors Constructor Description DefaultContextPathHolder(BootstrapManager bootstrapManager)
-
-
-
Constructor Detail
-
DefaultContextPathHolder
public DefaultContextPathHolder(BootstrapManager bootstrapManager)
-
-
Method Detail
-
getContextPath
public String getContextPath()
- Specified by:
getContextPath
in interfaceContextPathHolder
- Returns:
- the servlet context path
-
-