public class URIPrefixHandler extends Object implements Contextualizable, Component
Modifier and Type | Field and Description |
---|---|
protected Context |
_context
The avalon context
|
static String |
PATH_PREFIX
The request attribute name holding the current URL prefix
|
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 |
getUriPrefix()
Get the application context path.
|
public static final String PATH_PREFIX
public URIPrefixHandler()
public void contextualize(Context context) throws ContextException
contextualize
in interface Contextualizable
ContextException
public String getUriPrefix()
Request.getContextPath()
public String getAbsoluteUriPrefix()