Class RequestParameterLocaleFilter
java.lang.Object
ch.tocco.nice2.web.core.impl.servlet.locale.RequestParameterLocaleFilter
- All Implemented Interfaces:
jakarta.servlet.Filter
@Component
public class RequestParameterLocaleFilter
extends Object
implements jakarta.servlet.Filter
Gets the value for #localeParameterName from the HTTP request and
sets it in
RequestParameterLocaleResolver
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doFilter
(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) void
setLocaleParameterName
(String localeParameterName) 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
-
RequestParameterLocaleFilter
-
-
Method Details
-
doFilter
public void doFilter(jakarta.servlet.ServletRequest request, jakarta.servlet.ServletResponse response, jakarta.servlet.FilterChain chain) throws IOException, jakarta.servlet.ServletException - Specified by:
doFilter
in interfacejakarta.servlet.Filter
- Throws:
IOException
jakarta.servlet.ServletException
-
setLocaleParameterName
-