Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-2821

Improve MessageSanitizerContainerResponseFilter performance

XMLWordPrintable

    • Undefined

      MessageSanitizerContainerResponseFilter checks if it disables the html santizer for each request, we only need to do this when response code is 400:

      ResteasyDeployment deployment = ResteasyContext.getContextData(ResteasyDeployment.class);
      if (deployment != null)
      {
       Boolean disable = (Boolean) deployment.getProperty(ResteasyContextParameters.RESTEASY_DISABLE_HTML_SANITIZER);
       if (disable != null && disable)
       {
       return;
       }
      }

              rhn-engineering-ema Jim Ma
              rhn-engineering-ema Jim Ma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: