Class CatalogUrlFilter
java.lang.Object
org.apache.ofbiz.product.category.CatalogUrlFilter
- All Implemented Interfaces:
Filter
- Direct Known Subclasses:
CatalogUrlSeoFilter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
destroy()
void
doFilter
(ServletRequest request, ServletResponse response, FilterChain chain) Gets config.static String
static String
void
init
(FilterConfig filterConfig) static String
makeCategoryUrl
(HttpServletRequest request, String previousCategoryId, String productCategoryId, String productId, String viewSize, String viewIndex, String viewSort, String searchString) static String
makeCategoryUrl
(Delegator delegator, CategoryContentWrapper wrapper, List<String> trail, String contextPath, String previousCategoryId, String productCategoryId, String productId, String viewSize, String viewIndex, String viewSort, String searchString) static String
makeProductUrl
(HttpServletRequest request, String previousCategoryId, String productCategoryId, String productId) static String
makeProductUrl
(ProductContentWrapper wrapper, List<String> trail, String contextPath, String previousCategoryId, String productCategoryId, String productId) static void
setDefaultLocaleString
(String defaultLocaleString) static void
setRedirectUrl
(String redirectUrl)
-
Constructor Details
-
CatalogUrlFilter
public CatalogUrlFilter()
-
-
Method Details
-
getConfig
Gets config.- Returns:
- the config
-
init
- Specified by:
init
in interfaceFilter
- Throws:
ServletException
-
doFilter
public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException - Specified by:
doFilter
in interfaceFilter
- Throws:
IOException
ServletException
-
destroy
public void destroy() -
makeCategoryUrl
-
makeCategoryUrl
-
makeProductUrl
public static String makeProductUrl(HttpServletRequest request, String previousCategoryId, String productCategoryId, String productId) -
makeProductUrl
-
getDefaultLocaleString
-
setDefaultLocaleString
-
getRedirectUrl
-
setRedirectUrl
-