Class HttpMessageDiagnostic


  • public final class HttpMessageDiagnostic
    extends Object
    Http message diagnostic settings.
    • Constructor Detail

      • HttpMessageDiagnostic

        public HttpMessageDiagnostic()
    • Method Detail

      • headers

        public List<String> headers()
        Get the headers property: Array of HTTP Headers to log.
        Returns:
        the headers value.
      • withHeaders

        public HttpMessageDiagnostic withHeaders​(List<String> headers)
        Set the headers property: Array of HTTP Headers to log.
        Parameters:
        headers - the headers value to set.
        Returns:
        the HttpMessageDiagnostic object itself.
      • body

        public BodyDiagnosticSettings body()
        Get the body property: Body logging settings.
        Returns:
        the body value.
      • withBody

        public HttpMessageDiagnostic withBody​(BodyDiagnosticSettings body)
        Set the body property: Body logging settings.
        Parameters:
        body - the body value to set.
        Returns:
        the HttpMessageDiagnostic object itself.
      • dataMasking

        public DataMasking dataMasking()
        Get the dataMasking property: Data masking settings.
        Returns:
        the dataMasking value.
      • withDataMasking

        public HttpMessageDiagnostic withDataMasking​(DataMasking dataMasking)
        Set the dataMasking property: Data masking settings.
        Parameters:
        dataMasking - the dataMasking value to set.
        Returns:
        the HttpMessageDiagnostic object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.