Class StandardResponseHeaderFilterHolder

    • Constructor Detail

      • StandardResponseHeaderFilterHolder

        @Inject
        public StandardResponseHeaderFilterHolder​(ServerConfig serverConfig)
    • Method Detail

      • deduplicateHeadersInProxyServlet

        public static void deduplicateHeadersInProxyServlet​(javax.servlet.http.HttpServletResponse proxyResponse,
                                                            org.eclipse.jetty.client.api.Response serverResponse)
        Remove any standard headers in proxyResponse if they were also set in the origin response, serverResponse. This prevents duplicates headers from appearing in proxy responses. Used by implementations of AsyncProxyServlet.
      • getFilter

        public javax.servlet.Filter getFilter()
        Description copied from interface: ServletFilterHolder
        Get the Filter object that should be added to the servlet. This method is considered "mutually exclusive" from the getFilterClass method. That is, one of them should return null and the other should return an actual value.
        Specified by:
        getFilter in interface ServletFilterHolder
        Returns:
        The Filter object to be added to the servlet
      • getFilterClass

        public Class<? extends javax.servlet.Filter> getFilterClass()
        Description copied from interface: ServletFilterHolder
        Get the class of the Filter object that should be added to the servlet. This method is considered "mutually exclusive" from the getFilter method. That is, one of them should return null and the other should return an actual value.
        Specified by:
        getFilterClass in interface ServletFilterHolder
        Returns:
        The class of the Filter object to be added to the servlet