Class PontesGetResponseLimitInterceptor
java.lang.Object
net.finmath.pontes.erc7573.config.PontesGetResponseLimitInterceptor
- All Implemented Interfaces:
org.springframework.http.client.ClientHttpRequestInterceptor
public final class PontesGetResponseLimitInterceptor
extends Object
implements org.springframework.http.client.ClientHttpRequestInterceptor
Applies a whole-body byte limit to Pontes GET responses before deserialization.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.http.client.ClientHttpResponseintercept(org.springframework.http.HttpRequest request, byte[] body, org.springframework.http.client.ClientHttpRequestExecution execution) 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
-
PontesGetResponseLimitInterceptor
public PontesGetResponseLimitInterceptor(int maxResponseBytes)
-
-
Method Details
-
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
-