Package jenkins.telemetry.impl
Class UserLanguages.AcceptLanguageFilter
java.lang.Object
jenkins.telemetry.impl.UserLanguages.AcceptLanguageFilter
- All Implemented Interfaces:
ExtensionPoint
,HttpServletFilter
- Enclosing class:
- UserLanguages
@Extension
public static final class UserLanguages.AcceptLanguageFilter
extends Object
implements HttpServletFilter
-
Nested Class Summary
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
handle
(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) Potentially intercepts or otherwise modifies an HTTP request.
-
Constructor Details
-
AcceptLanguageFilter
public AcceptLanguageFilter()
-
-
Method Details
-
handle
public boolean handle(jakarta.servlet.http.HttpServletRequest req, jakarta.servlet.http.HttpServletResponse rsp) throws IOException, jakarta.servlet.ServletException Description copied from interface:HttpServletFilter
Potentially intercepts or otherwise modifies an HTTP request.- Specified by:
handle
in interfaceHttpServletFilter
- Parameters:
req
- as inFilter.doFilter(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, jakarta.servlet.FilterChain)
rsp
- as inFilter.doFilter(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, jakarta.servlet.FilterChain)
- Returns:
- true if this request was handled; false to proceed with other handlers (
FilterChain
) - Throws:
IOException
- as inFilter.doFilter(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, jakarta.servlet.FilterChain)
jakarta.servlet.ServletException
- as inFilter.doFilter(jakarta.servlet.ServletRequest, jakarta.servlet.ServletResponse, jakarta.servlet.FilterChain)
-