OFBIZ-8142 A series of cleanups related to OFBiz servlet filters:
* removed an unused filter (UrlRegexpContextFilter) * moved a series of methods from ContextFilter to WebAppUtil, where they make more sense; changed one of them to be a static method * made private some methods of ContextFilter and WebAppUtil because they were not used outside of their classes git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1759332 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -38,6 +38,7 @@ import org.apache.ofbiz.entity.GenericEntityException;
|
||||
import org.apache.ofbiz.entity.GenericValue;
|
||||
import org.apache.ofbiz.entity.util.EntityQuery;
|
||||
import org.apache.ofbiz.entity.util.EntityUtil;
|
||||
import org.apache.ofbiz.webapp.WebAppUtil;
|
||||
import org.apache.ofbiz.webapp.control.ContextFilter;
|
||||
import org.apache.ofbiz.webapp.website.WebSiteWorker;
|
||||
|
||||
@@ -56,7 +57,7 @@ public final class UrlServletHelper extends ContextFilter {
|
||||
String serverName = request.getServerName();
|
||||
try {
|
||||
// if tenant was specified, replace delegator with the new per-tenant delegator and set tenantId to session attribute
|
||||
delegator = getDelegator(servletContext);
|
||||
delegator = WebAppUtil.getDelegator(servletContext);
|
||||
|
||||
//Use base delegator for fetching data from entity of entityGroup org.apache.ofbiz.tenant
|
||||
Delegator baseDelegator = DelegatorFactory.getDelegator(delegator.getDelegatorBaseName());
|
||||
|
||||
Reference in New Issue
Block a user