Class WebHTTPHeaders

    • Constructor Detail

      • WebHTTPHeaders

        public WebHTTPHeaders()
        No args constructor for use in serialization
      • WebHTTPHeaders

        public WebHTTPHeaders​(String contentSecurityPolicy,
                              String strictTransportSecurity,
                              String xContentTypeOptions,
                              String xFrameOptions,
                              String xXSSProtection)
    • Method Detail

      • getContentSecurityPolicy

        public String getContentSecurityPolicy()
        contentSecurityPolicy defines the Content-Security-Policy header to HTTP responses. Unset if blank.
      • setContentSecurityPolicy

        public void setContentSecurityPolicy​(String contentSecurityPolicy)
        contentSecurityPolicy defines the Content-Security-Policy header to HTTP responses. Unset if blank.
      • getStrictTransportSecurity

        public String getStrictTransportSecurity()
        strictTransportSecurity defines the Strict-Transport-Security header to HTTP responses. Unset if blank. Please make sure that you use this with care as this header might force browsers to load Prometheus and the other applications hosted on the same domain and subdomains over HTTPS. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
      • setStrictTransportSecurity

        public void setStrictTransportSecurity​(String strictTransportSecurity)
        strictTransportSecurity defines the Strict-Transport-Security header to HTTP responses. Unset if blank. Please make sure that you use this with care as this header might force browsers to load Prometheus and the other applications hosted on the same domain and subdomains over HTTPS. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Strict-Transport-Security
      • getXContentTypeOptions

        public String getXContentTypeOptions()
        xContentTypeOptions defines the X-Content-Type-Options header to HTTP responses. Unset if blank. Accepted value is nosniff. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
      • setXContentTypeOptions

        public void setXContentTypeOptions​(String xContentTypeOptions)
        xContentTypeOptions defines the X-Content-Type-Options header to HTTP responses. Unset if blank. Accepted value is nosniff. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Content-Type-Options
      • getXFrameOptions

        public String getXFrameOptions()
        xFrameOptions defines the X-Frame-Options header to HTTP responses. Unset if blank. Accepted values are deny and sameorigin. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
      • setXFrameOptions

        public void setXFrameOptions​(String xFrameOptions)
        xFrameOptions defines the X-Frame-Options header to HTTP responses. Unset if blank. Accepted values are deny and sameorigin. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Frame-Options
      • getXXSSProtection

        public String getXXSSProtection()
        xXSSProtection defines the X-XSS-Protection header to all responses. Unset if blank. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
      • setXXSSProtection

        public void setXXSSProtection​(String xXSSProtection)
        xXSSProtection defines the X-XSS-Protection header to all responses. Unset if blank. https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-XSS-Protection
      • getAdditionalProperties

        public Map<String,​Object> getAdditionalProperties()
      • setAdditionalProperty

        public void setAdditionalProperty​(String name,
                                          Object value)
      • setAdditionalProperties

        public void setAdditionalProperties​(Map<String,​Object> additionalProperties)