Search in sources :

Example 1 with FessWebResourceRoot

use of org.codelibs.fess.tomcat.webresources.FessWebResourceRoot in project fess by codelibs.

the class FessBoot method setupWebappContext.

@Override
protected void setupWebappContext() {
    super.setupWebappContext();
    String contextPath = getContextPath();
    if (contextPath.length() > 0 && contextPath.endsWith("/")) {
        contextPath = contextPath.replaceAll("/+$", StringUtil.EMPTY);
    }
    final Context context = (Context) server.getHost().findChild(contextPath);
    if (context != null) {
        context.setResources(new FessWebResourceRoot(context));
    }
}
Also used : Context(org.apache.catalina.Context) FessWebResourceRoot(org.codelibs.fess.tomcat.webresources.FessWebResourceRoot)

Aggregations

Context (org.apache.catalina.Context)1 FessWebResourceRoot (org.codelibs.fess.tomcat.webresources.FessWebResourceRoot)1