JavaScript is disabled on your browser.
Skip navigation links

AWS SDK for Java 1.x API Reference - 1.12.795

We announced the upcoming end-of-support for AWS SDK for Java (v1). We recommend that you migrate to AWS SDK for Java v2. For dates, additional details, and information on how to migrate, please refer to the linked announcement.
com.amazonaws.services.cloudfront.model

Class ResponseHeadersPolicyXSSProtection

    • Constructor Detail

      • ResponseHeadersPolicyXSSProtection

        public ResponseHeadersPolicyXSSProtection()
    • Method Detail

      • setOverride

        public void setOverride(Boolean override)

        A Boolean that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.

        Parameters:
        override - A Boolean that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
      • getOverride

        public Boolean getOverride()

        A Boolean that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.

        Returns:
        A Boolean that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
      • withOverride

        public ResponseHeadersPolicyXSSProtection withOverride(Boolean override)

        A Boolean that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.

        Parameters:
        override - A Boolean that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isOverride

        public Boolean isOverride()

        A Boolean that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.

        Returns:
        A Boolean that determines whether CloudFront overrides the X-XSS-Protection HTTP response header received from the origin with the one specified in this response headers policy.
      • setProtection

        public void setProtection(Boolean protection)

        A Boolean that determines the value of the X-XSS-Protection HTTP response header. When this setting is true, the value of the X-XSS-Protection header is 1. When this setting is false, the value of the X-XSS-Protection header is 0.

        For more information about these settings, see X-XSS-Protection in the MDN Web Docs.

        Parameters:
        protection - A Boolean that determines the value of the X-XSS-Protection HTTP response header. When this setting is true, the value of the X-XSS-Protection header is 1. When this setting is false, the value of the X-XSS-Protection header is 0.

        For more information about these settings, see X-XSS-Protection in the MDN Web Docs.

      • getProtection

        public Boolean getProtection()

        A Boolean that determines the value of the X-XSS-Protection HTTP response header. When this setting is true, the value of the X-XSS-Protection header is 1. When this setting is false, the value of the X-XSS-Protection header is 0.

        For more information about these settings, see X-XSS-Protection in the MDN Web Docs.

        Returns:
        A Boolean that determines the value of the X-XSS-Protection HTTP response header. When this setting is true, the value of the X-XSS-Protection header is 1. When this setting is false, the value of the X-XSS-Protection header is 0.

        For more information about these settings, see X-XSS-Protection in the MDN Web Docs.

      • withProtection

        public ResponseHeadersPolicyXSSProtection withProtection(Boolean protection)

        A Boolean that determines the value of the X-XSS-Protection HTTP response header. When this setting is true, the value of the X-XSS-Protection header is 1. When this setting is false, the value of the X-XSS-Protection header is 0.

        For more information about these settings, see X-XSS-Protection in the MDN Web Docs.

        Parameters:
        protection - A Boolean that determines the value of the X-XSS-Protection HTTP response header. When this setting is true, the value of the X-XSS-Protection header is 1. When this setting is false, the value of the X-XSS-Protection header is 0.

        For more information about these settings, see X-XSS-Protection in the MDN Web Docs.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isProtection

        public Boolean isProtection()

        A Boolean that determines the value of the X-XSS-Protection HTTP response header. When this setting is true, the value of the X-XSS-Protection header is 1. When this setting is false, the value of the X-XSS-Protection header is 0.

        For more information about these settings, see X-XSS-Protection in the MDN Web Docs.

        Returns:
        A Boolean that determines the value of the X-XSS-Protection HTTP response header. When this setting is true, the value of the X-XSS-Protection header is 1. When this setting is false, the value of the X-XSS-Protection header is 0.

        For more information about these settings, see X-XSS-Protection in the MDN Web Docs.

      • setModeBlock

        public void setModeBlock(Boolean modeBlock)

        A Boolean that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header.

        For more information about this directive, see X-XSS-Protection in the MDN Web Docs.

        Parameters:
        modeBlock - A Boolean that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header.

        For more information about this directive, see X-XSS-Protection in the MDN Web Docs.

      • getModeBlock

        public Boolean getModeBlock()

        A Boolean that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header.

        For more information about this directive, see X-XSS-Protection in the MDN Web Docs.

        Returns:
        A Boolean that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header.

        For more information about this directive, see X-XSS-Protection in the MDN Web Docs.

      • withModeBlock

        public ResponseHeadersPolicyXSSProtection withModeBlock(Boolean modeBlock)

        A Boolean that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header.

        For more information about this directive, see X-XSS-Protection in the MDN Web Docs.

        Parameters:
        modeBlock - A Boolean that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header.

        For more information about this directive, see X-XSS-Protection in the MDN Web Docs.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • isModeBlock

        public Boolean isModeBlock()

        A Boolean that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header.

        For more information about this directive, see X-XSS-Protection in the MDN Web Docs.

        Returns:
        A Boolean that determines whether CloudFront includes the mode=block directive in the X-XSS-Protection header.

        For more information about this directive, see X-XSS-Protection in the MDN Web Docs.

      • setReportUri

        public void setReportUri(String reportUri)

        A reporting URI, which CloudFront uses as the value of the report directive in the X-XSS-Protection header.

        You cannot specify a ReportUri when ModeBlock is true.

        For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.

        Parameters:
        reportUri - A reporting URI, which CloudFront uses as the value of the report directive in the X-XSS-Protection header.

        You cannot specify a ReportUri when ModeBlock is true.

        For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.

      • getReportUri

        public String getReportUri()

        A reporting URI, which CloudFront uses as the value of the report directive in the X-XSS-Protection header.

        You cannot specify a ReportUri when ModeBlock is true.

        For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.

        Returns:
        A reporting URI, which CloudFront uses as the value of the report directive in the X-XSS-Protection header.

        You cannot specify a ReportUri when ModeBlock is true.

        For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.

      • withReportUri

        public ResponseHeadersPolicyXSSProtection withReportUri(String reportUri)

        A reporting URI, which CloudFront uses as the value of the report directive in the X-XSS-Protection header.

        You cannot specify a ReportUri when ModeBlock is true.

        For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.

        Parameters:
        reportUri - A reporting URI, which CloudFront uses as the value of the report directive in the X-XSS-Protection header.

        You cannot specify a ReportUri when ModeBlock is true.

        For more information about using a reporting URL, see X-XSS-Protection in the MDN Web Docs.

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
Skip navigation links

AltStyle によって変換されたページ (->オリジナル) /