public class UrlRewriteService extends Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.web.context.ServletContextAware
| Constructor and Description |
|---|
UrlRewriteService() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigurationResource(org.springframework.core.io.Resource resource) |
void |
addLastConfigurationResource(org.springframework.core.io.Resource resource) |
void |
addSeoConfigurationResource(org.springframework.core.io.Resource resource) |
void |
afterPropertiesSet() |
void |
destroy() |
org.jahia.services.seo.urlrewrite.UrlRewriteEngine |
getEngine()
Initializes an instance of this class.
|
protected List<org.springframework.web.servlet.HandlerMapping> |
getRenderMapping() |
boolean |
isResrvedPrefix(String prefix) |
boolean |
isSeoRemoveCmsPrefix() |
boolean |
isSeoRulesEnabled() |
boolean |
prepareInbound(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
removeConfigurationResource(org.springframework.core.io.Resource resource) |
void |
removeLastConfigurationResource(org.springframework.core.io.Resource resource) |
void |
removeSeoConfigurationResource(org.springframework.core.io.Resource resource) |
org.tuckey.web.filters.urlrewrite.RewrittenUrl |
rewriteInbound(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
String |
rewriteOutbound(String url,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response) |
void |
setConfigurationResources(org.springframework.core.io.Resource[] configurationResources) |
void |
setConfReloadCheckIntervalSeconds(int confReloadCheckIntervalSeconds) |
void |
setLastConfigurationResources(org.springframework.core.io.Resource[] postSeoConfigurationResources) |
void |
setReservedUrlPrefixes(String reservedUrlPrefixes) |
void |
setSeoConfigurationResources(org.springframework.core.io.Resource[] seoConfigurationResources) |
void |
setSeoRemoveCmsPrefix(boolean seoRemoveCmsPrefix) |
void |
setSeoRulesEnabled(boolean seoRulesEnabled) |
void |
setServletContext(javax.servlet.ServletContext servletContext) |
void |
setSettingsBean(SettingsBean settingsBean) |
void |
setSiteService(JahiaSitesService siteService) |
void |
setUrlResolverFactory(URLResolverFactory urlResolverFactory) |
void |
setVanityUrlService(VanityUrlService vanityUrlService) |
public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void destroy()
throws Exception
destroy in interface org.springframework.beans.factory.DisposableBeanExceptionpublic org.jahia.services.seo.urlrewrite.UrlRewriteEngine getEngine()
protected List<org.springframework.web.servlet.HandlerMapping> getRenderMapping()
public boolean isSeoRulesEnabled()
public boolean isResrvedPrefix(String prefix)
public boolean prepareInbound(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
public org.tuckey.web.filters.urlrewrite.RewrittenUrl rewriteInbound(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws IOException,
javax.servlet.ServletException,
InvocationTargetException
IOExceptionjavax.servlet.ServletExceptionInvocationTargetExceptionpublic String rewriteOutbound(String url, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws IOException, javax.servlet.ServletException, InvocationTargetException
IOExceptionjavax.servlet.ServletExceptionInvocationTargetExceptionpublic void setConfigurationResources(org.springframework.core.io.Resource[] configurationResources)
public void addConfigurationResource(org.springframework.core.io.Resource resource)
public void removeConfigurationResource(org.springframework.core.io.Resource resource)
public void setConfReloadCheckIntervalSeconds(int confReloadCheckIntervalSeconds)
public void setSeoConfigurationResources(org.springframework.core.io.Resource[] seoConfigurationResources)
public void addSeoConfigurationResource(org.springframework.core.io.Resource resource)
public void removeSeoConfigurationResource(org.springframework.core.io.Resource resource)
public void setSeoRulesEnabled(boolean seoRulesEnabled)
public void setServletContext(javax.servlet.ServletContext servletContext)
setServletContext in interface org.springframework.web.context.ServletContextAwarepublic void setVanityUrlService(VanityUrlService vanityUrlService)
public void setUrlResolverFactory(URLResolverFactory urlResolverFactory)
public void setReservedUrlPrefixes(String reservedUrlPrefixes)
public void setSiteService(JahiaSitesService siteService)
public void setSettingsBean(SettingsBean settingsBean)
public void setLastConfigurationResources(org.springframework.core.io.Resource[] postSeoConfigurationResources)
public void addLastConfigurationResource(org.springframework.core.io.Resource resource)
public void removeLastConfigurationResource(org.springframework.core.io.Resource resource)
public boolean isSeoRemoveCmsPrefix()
public void setSeoRemoveCmsPrefix(boolean seoRemoveCmsPrefix)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.