Browse Source

make methods protected

Shinsuke Sugaya 4 years ago
parent
commit
46a9aee502
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/org/codelibs/fess/helper/PathMappingHelper.java

+ 2 - 2
src/main/java/org/codelibs/fess/helper/PathMappingHelper.java

@@ -162,7 +162,7 @@ public class PathMappingHelper {
         }
     }
 
-    private String replaceUrl(final List<PathMapping> pathMappingList, final String url) {
+    protected String replaceUrl(final List<PathMapping> pathMappingList, final String url) {
         String newUrl = url;
         for (final PathMapping pathMapping : pathMappingList) {
             if (matchUserAgent(pathMapping)) {
@@ -172,7 +172,7 @@ public class PathMappingHelper {
         return newUrl;
     }
 
-    private boolean matchUserAgent(final PathMapping pathMapping) {
+    protected boolean matchUserAgent(final PathMapping pathMapping) {
         if (!pathMapping.hasUAMathcer()) {
             return true;
         }