Class WebHTTPHeaders

  • All Implemented Interfaces:
    io.fabric8.kubernetes.api.builder.Editable<WebHTTPHeadersBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource, Serializable

    @Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator")
    public class WebHTTPHeaders
    extends Object
    implements io.fabric8.kubernetes.api.builder.Editable<WebHTTPHeadersBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
    WebHTTPHeaders defines the list of headers that can be added to HTTP responses.
    See Also:
    Serialized Form
    • 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()
        Set the Content-Security-Policy header to HTTP responses. Unset if blank.
      • setContentSecurityPolicy

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

        public String getStrictTransportSecurity()
        Set 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)
        Set 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()
        Set 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)
        Set 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()
        Set 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)
        Set 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()
        Set 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)
        Set 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)