Class XLanguageLocaleResolverFilter
java.lang.Object
ch.tocco.nice2.web.core.impl.servlet.locale.XLanguageLocaleResolverFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
@Component
public final class XLanguageLocaleResolverFilter
extends Object
implements jakarta.servlet.Filter
Sets X-Language request header to
HttpRequestXLanguageLocaleResolver
.-
Constructor Summary
ConstructorDescriptionXLanguageLocaleResolverFilter
(HttpRequestXLanguageLocaleResolver resolverXLanguage) -
Method Summary
Modifier and TypeMethodDescriptionvoid
doFilter
(jakarta.servlet.ServletRequest servletRequest, jakarta.servlet.ServletResponse servletResponse, jakarta.servlet.FilterChain filterChain) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface jakarta.servlet.Filter
destroy, init
-
Constructor Details
-
XLanguageLocaleResolverFilter
-
-
Method Details
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest servletRequest, jakarta.servlet.ServletResponse servletResponse, jakarta.servlet.FilterChain filterChain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilter
in interfacejakarta.servlet.Filter
- Throws:
IOException
jakarta.servlet.ServletException
-