- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for PathMapping (0.12 sec)
-
src/main/java/org/codelibs/fess/es/config/exentity/PathMapping.java
import org.codelibs.fess.es.config.bsentity.BsPathMapping; import org.codelibs.fess.helper.PathMappingHelper; /** * @author FreeGen */ public class PathMapping extends BsPathMapping { private static final Logger logger = LogManager.getLogger(PathMapping.class); private static final long serialVersionUID = 1L; protected Pattern userAgentPattern; protected Pattern regexPattern;
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/es/config/bsentity/dbmeta/PathMappingDbm.java
setupEpg(_epgMap, et -> ((PathMapping) et).getRegex(), (et, vl) -> ((PathMapping) et).setRegex(DfTypeUtil.toString(vl)), "regex"); setupEpg(_epgMap, et -> ((PathMapping) et).getReplacement(), (et, vl) -> ((PathMapping) et).setReplacement(DfTypeUtil.toString(vl)), "replacement"); setupEpg(_epgMap, et -> ((PathMapping) et).getSortOrder(), (et, vl) -> ((PathMapping) et).setSortOrder(DfTypeUtil.toInteger(vl)),
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 11.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/es/config/bsbhv/BsPathMappingBhv.java
return createOptionalEntity(doSelectByPK(id, tp), id); } @Override protected Class<? extends PathMapping> typeOfSelectedEntity() { return PathMapping.class; } @Override protected Class<PathMapping> typeOfHandlingEntity() { return PathMapping.class; } @Override protected Class<PathMappingCB> typeOfHandlingConditionBean() {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 9.8K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/PathMappingHelperTest.java
public void test_replaceUrl() { final String sessionId = "test"; final List<PathMapping> pathMappingList = new ArrayList<PathMapping>(); final PathMapping pathMapping = new PathMapping(); pathMapping.setRegex("file:///home/"); pathMapping.setReplacement("http://localhost/"); pathMappingList.add(pathMapping); pathMappingHelper.setPathMappingList(sessionId, pathMappingList);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 3.3K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/service/PathMappingService.java
}).createPageNumberList()); return pathMappingList; } public OptionalEntity<PathMapping> getPathMapping(final String id) { return pathMappingBhv.selectByPK(id); } public void store(final PathMapping pathMapping) { pathMappingBhv.insertOrUpdate(pathMapping, op -> { op.setRefreshPolicy(Constants.TRUE); });
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 3.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/helper/PathMappingHelper.java
String result = text; for (final PathMapping pathMapping : cachedPathMappingList) { if (matchUserAgent(pathMapping)) { String replacement = pathMapping.getReplacement(); if (replacement == null) { replacement = StringUtil.EMPTY; } result = result.replaceAll("(\"[^\"]*)" + pathMapping.getRegex() + "([^\"]*\")", "$1" + replacement + "$2");
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 7.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/pathmap/ApiAdminPathmapAction.java
import org.codelibs.fess.app.web.CrudMode; import org.codelibs.fess.app.web.api.ApiResult; import org.codelibs.fess.app.web.api.admin.FessApiAdminAction; import org.codelibs.fess.es.config.exentity.PathMapping; import org.lastaflute.web.Execute; import org.lastaflute.web.response.JsonResponse; import jakarta.annotation.Resource; public class ApiAdminPathmapAction extends FessApiAdminAction {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 5.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/ViewHelperTest.java
assertUrlLink("smb:/home/taro/%E3%81%82.txt", // "file://home/taro/%E3%81%82.txt"); PathMapping pathMapping = new PathMapping(); pathMapping.setRegex("ftp:"); pathMapping.setReplacement("file:"); ComponentUtil.getPathMappingHelper().cachedPathMappingList.add(pathMapping); // ftp->file assertUrlLink("ftp:/home/taro/test.txt", // "file://home/taro/test.txt");
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 15.1K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/pathmap/AdminPathmapAction.java
// ============ private static OptionalEntity<PathMapping> getEntity(final CreateForm form, final String username, final long currentTime) { switch (form.crudMode) { case CrudMode.CREATE: return OptionalEntity.of(new PathMapping()).map(entity -> { entity.setCreatedBy(username); entity.setCreatedTime(currentTime);
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 13K bytes - Viewed (0) -
src/main/webapp/WEB-INF/view/admin/pathmap/admin_pathmap_edit.jsp
<jsp:include page="/WEB-INF/view/common/admin/sidebar.jsp"> <jsp:param name="menuCategoryType" value="crawl"/> <jsp:param name="menuType" value="pathMapping"/> </jsp:include> <div class="content-wrapper"> <div class="content-header"> <div class="container-fluid"> <div class="row mb-2"> <div class="col-sm-6">
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Sun Feb 28 06:09:47 UTC 2021 - 7K bytes - Viewed (0)