Class 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 for 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
    • Field Detail

      • log

        protected final org.slf4j.Logger log
    • Constructor Detail

      • RegistryApplicationServletFilter

        public RegistryApplicationServletFilter()
    • 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:
        doFilter in interface javax.servlet.Filter
        Throws:
        IOException
        javax.servlet.ServletException
        See Also:
        Filter.doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain)