Package org.codelibs.fess.helper
Class PathMappingHelper
- java.lang.Object
-
- org.codelibs.fess.helper.PathMappingHelper
-
public class PathMappingHelper extends Object
-
-
Field Summary
Fields Modifier and Type Field Description protected List<PathMapping>cachedPathMappingListprotected static StringFUNCTION_ENCODEURL_MATCHERprotected static StringGROOVY_MATCHERprotected Map<String,List<PathMapping>>pathMappingMap
-
Constructor Summary
Constructors Constructor Description PathMappingHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BiFunction<String,Matcher,String>createPathMatcher(Matcher matcher, String replacement)List<PathMapping>getPathMappingList(String sessionId)voidinit()voidremovePathMappingList(String sessionId)StringreplaceUrl(String url)StringreplaceUrl(String sessionId, String url)StringreplaceUrls(String text)voidsetPathMappingList(String sessionId, List<PathMapping> pathMappingList)intupdate()
-
-
-
Field Detail
-
FUNCTION_ENCODEURL_MATCHER
protected static final String FUNCTION_ENCODEURL_MATCHER
- See Also:
- Constant Field Values
-
GROOVY_MATCHER
protected static final String GROOVY_MATCHER
- See Also:
- Constant Field Values
-
pathMappingMap
protected final Map<String,List<PathMapping>> pathMappingMap
-
cachedPathMappingList
protected volatile List<PathMapping> cachedPathMappingList
-
-
Method Detail
-
init
@PostConstruct public void init()
-
update
public int update()
-
setPathMappingList
public void setPathMappingList(String sessionId, List<PathMapping> pathMappingList)
-
removePathMappingList
public void removePathMappingList(String sessionId)
-
getPathMappingList
public List<PathMapping> getPathMappingList(String sessionId)
-
-