Package io.apicurio.registry.rest
Class RegistryApplicationServletFilter
- java.lang.Object
-
- io.apicurio.registry.rest.RegistryApplicationServletFilter
-
- All Implemented Interfaces:
javax.servlet.Filter
@ApplicationScoped public class RegistryApplicationServletFilter extends Object implements javax.servlet.Filter
This Servlet Filter combines various functionalities that can be configured using config properties: Multitenancy: the registry can accept per-tenant URLs, accepting requests like /t/{tenantId}/...rest of the api... Disable APIs: it's possible to provide a list of regular expresions to disable API paths. The list of regular expressions will be applied to all incoming requests, if any of them match the request will get a 404 response. Note: this is implemented in a servlet to be able to disable the web UI (/ui), because the web is served with Servlets- Author:
- Fabian Martinez
-
-
Constructor Summary
Constructors Constructor Description RegistryApplicationServletFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain)
-
-
-
Method Detail
-
doFilter
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException- Specified by:
doFilterin interfacejavax.servlet.Filter- Throws:
IOExceptionjavax.servlet.ServletException- See Also:
Filter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)
-
-