public class URIPrefixHandler extends Object implements Serviceable, Contextualizable, Component
Modifier and Type | Field and Description |
---|---|
private Context |
_context |
private RenderingContextHandler |
_renderingContexthandler |
private SiteManager |
_siteManager |
static String |
ROLE
Avalon role
|
Constructor and Description |
---|
URIPrefixHandler() |
Modifier and Type | Method and Description |
---|---|
void |
contextualize(Context context) |
String |
getAbsoluteUriPrefix()
Get the absolutized version of the context path.
|
String |
getAbsoluteUriPrefix(String siteName)
Get an absolutized version of the workspace context path.
|
String |
getUriPrefix()
Get the application context path.
|
String |
getUriPrefix(String siteName)
Get the full path to the workspace with site name.
|
void |
service(ServiceManager manager) |
private RenderingContextHandler _renderingContexthandler
private SiteManager _siteManager
public URIPrefixHandler()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public void service(ServiceManager manager) throws ServiceException
service
in interface Serviceable
ServiceException
public String getUriPrefix()
Request.getContextPath()
public String getUriPrefix(String siteName)
siteName
- the current site name.public String getAbsoluteUriPrefix()
public String getAbsoluteUriPrefix(String siteName)
siteName
- The name of the current site.