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 Summary
ConstructorsConstructorDescriptionPontesLoggingInterceptor(boolean enabled, String logFilePath) Retains the original direct-construction seam used by focused interceptor tests.PontesLoggingInterceptor(PontesLoggingProperties properties, com.fasterxml.jackson.databind.ObjectMapper mapper, String adapterRole) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.http.client.ClientHttpRequestInterceptor
andThen, apply
-
Constructor Details
-
PontesLoggingInterceptor
public PontesLoggingInterceptor(PontesLoggingProperties properties, com.fasterxml.jackson.databind.ObjectMapper mapper, String adapterRole) -
PontesLoggingInterceptor
Retains the original direct-construction seam used by focused interceptor tests.
-
-
Method Details
-
isEnabled
public boolean isEnabled() -
isDegraded
public boolean isDegraded() -
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:
interceptin interfaceorg.springframework.http.client.ClientHttpRequestInterceptor- Throws:
IOException
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-