Package org.codelibs.fess.helper
Class PathMappingHelper
- java.lang.Object
-
- org.codelibs.fess.helper.AbstractConfigHelper
-
- org.codelibs.fess.helper.PathMappingHelper
-
public class PathMappingHelper extends AbstractConfigHelper
-
-
Field Summary
Fields Modifier and Type Field Description protected List<PathMapping>cachedPathMappingListprotected static StringFUNCTION_ENCODEURL_MATCHERprotected static StringGROOVY_MATCHERprotected Map<String,List<PathMapping>>pathMappingMap-
Fields inherited from class org.codelibs.fess.helper.AbstractConfigHelper
reloadInterval
-
-
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)protected List<String>getProcessTypeList()voidinit()intload()protected booleanmatchUserAgent(PathMapping pathMapping)voidremovePathMappingList(String sessionId)StringreplaceUrl(String url)StringreplaceUrl(String sessionId, String url)protected StringreplaceUrl(List<PathMapping> pathMappingList, String url)StringreplaceUrls(String text)voidsetPathMappingList(String sessionId, List<PathMapping> pathMappingList)-
Methods inherited from class org.codelibs.fess.helper.AbstractConfigHelper
setReloadInterval, update, waitForNext
-
-
-
-
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()
-
load
public int load()
- Specified by:
loadin classAbstractConfigHelper
-
setPathMappingList
public void setPathMappingList(String sessionId, List<PathMapping> pathMappingList)
-
removePathMappingList
public void removePathMappingList(String sessionId)
-
getPathMappingList
public List<PathMapping> getPathMappingList(String sessionId)
-
createPathMatcher
public BiFunction<String,Matcher,String> createPathMatcher(Matcher matcher, String replacement)
-
replaceUrl
protected String replaceUrl(List<PathMapping> pathMappingList, String url)
-
matchUserAgent
protected boolean matchUserAgent(PathMapping pathMapping)
-
-