Class AbstractSecurityHeaderWriter

    • Constructor Detail

      • AbstractSecurityHeaderWriter

        public AbstractSecurityHeaderWriter()
    • Method Detail

      • hasHeader

        protected final boolean hasHeader​(javax.servlet.http.HttpServletResponse response,
                                          String headerName)
        Checks whether the given HTTP response already has at least one header with the given name.
        Parameters:
        response - the HTTP response to check
        headerName - the name of the HTTP header to check
        Returns:
        true if the response has at least one header with the given name, false otherwise.