Class WebHTTPHeaders
- java.lang.Object
-
- io.fabric8.openshift.api.model.monitoring.v1.WebHTTPHeaders
-
- All Implemented Interfaces:
Editable<WebHTTPHeadersBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class WebHTTPHeaders extends Object implements Editable<WebHTTPHeadersBuilder>, 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()contentSecurityPolicy defines the Content-Security-Policy header to HTTP responses.StringgetStrictTransportSecurity()strictTransportSecurity defines the Strict-Transport-Security header to HTTP responses.StringgetXContentTypeOptions()xContentTypeOptions defines the X-Content-Type-Options header to HTTP responses.StringgetXFrameOptions()xFrameOptions defines the X-Frame-Options header to HTTP responses.StringgetXXSSProtection()xXSSProtection defines the X-XSS-Protection header to all responses.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetContentSecurityPolicy(String contentSecurityPolicy)contentSecurityPolicy defines the Content-Security-Policy header to HTTP responses.voidsetStrictTransportSecurity(String strictTransportSecurity)strictTransportSecurity defines the Strict-Transport-Security header to HTTP responses.voidsetXContentTypeOptions(String xContentTypeOptions)xContentTypeOptions defines the X-Content-Type-Options header to HTTP responses.voidsetXFrameOptions(String xFrameOptions)xFrameOptions defines the X-Frame-Options header to HTTP responses.voidsetXXSSProtection(String xXSSProtection)xXSSProtection defines the X-XSS-Protection header to all responses.WebHTTPHeadersBuildertoBuilder()
-
-
-
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
-
edit
public WebHTTPHeadersBuilder edit()
- Specified by:
editin interfaceEditable<WebHTTPHeadersBuilder>
-
toBuilder
public WebHTTPHeadersBuilder toBuilder()
-
-