Class WebHTTPHeaders
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.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 Summary
Constructors Constructor Description WebHTTPHeaders()No args constructor for use in serializationWebHTTPHeaders(String contentSecurityPolicy, String strictTransportSecurity, String xContentTypeOptions, String xFrameOptions, String xXSSProtection)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WebHTTPHeadersBuilderedit()Map<String,Object>getAdditionalProperties()StringgetContentSecurityPolicy()Set the Content-Security-Policy header to HTTP responses.StringgetStrictTransportSecurity()Set the Strict-Transport-Security header to HTTP responses.StringgetXContentTypeOptions()Set the X-Content-Type-Options header to HTTP responses.StringgetXFrameOptions()Set the X-Frame-Options header to HTTP responses.StringgetXXSSProtection()Set the X-XSS-Protection header to all responses.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetContentSecurityPolicy(String contentSecurityPolicy)Set the Content-Security-Policy header to HTTP responses.voidsetStrictTransportSecurity(String strictTransportSecurity)Set the Strict-Transport-Security header to HTTP responses.voidsetXContentTypeOptions(String xContentTypeOptions)Set the X-Content-Type-Options header to HTTP responses.voidsetXFrameOptions(String xFrameOptions)Set the X-Frame-Options header to HTTP responses.voidsetXXSSProtection(String xXSSProtection)Set the X-XSS-Protection header to all responses.WebHTTPHeadersBuildertoBuilder()
-
-
-
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
-
edit
public WebHTTPHeadersBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<WebHTTPHeadersBuilder>
-
toBuilder
public WebHTTPHeadersBuilder toBuilder()
-
-