Class PontesLoggingInterceptor

java.lang.Object
net.finmath.pontes.erc7573.config.PontesLoggingInterceptor
All Implemented Interfaces:
AutoCloseable, org.springframework.http.client.ClientHttpRequestInterceptor

public final class PontesLoggingInterceptor extends Object implements org.springframework.http.client.ClientHttpRequestInterceptor, AutoCloseable
Optional, bounded HTTP evidence capture for Pontes resource and token requests.

The exchange identifier is local to this artifact. It is not sent to Pontes and is not an on-chain or business correlation identifier. The separate OAuth client also uses this interceptor; token requests and replies pass through the same evidence sanitization.

  • Constructor Details

    • PontesLoggingInterceptor

      public PontesLoggingInterceptor(PontesLoggingProperties properties, com.fasterxml.jackson.databind.ObjectMapper mapper, String adapterRole)
    • PontesLoggingInterceptor

      public PontesLoggingInterceptor(boolean enabled, String logFilePath)
      Retains the original direct-construction seam used by focused interceptor tests.
  • Method Details

    • isEnabled

      public boolean isEnabled()
    • isDegraded

      public boolean isDegraded()
    • getLogFilePath

      public Path getLogFilePath()
    • intercept

      public org.springframework.http.client.ClientHttpResponse intercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) throws IOException
      Specified by:
      intercept in interface org.springframework.http.client.ClientHttpRequestInterceptor
      Throws:
      IOException
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable