Class PayloadSerializingInterceptor
- java.lang.Object
-
- org.apache.tinkerpop.gremlin.driver.interceptor.PayloadSerializingInterceptor
-
- All Implemented Interfaces:
Function<HttpRequest,HttpRequest>
,UnaryOperator<HttpRequest>
,RequestInterceptor
public class PayloadSerializingInterceptor extends Object implements RequestInterceptor
ARequestInterceptor
that serializes the request body usng the providedMessageSerializer
. This interceptor should be run before other interceptors that need to calculate values based on the request body.
-
-
Constructor Summary
Constructors Constructor Description PayloadSerializingInterceptor(MessageSerializer serializer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HttpRequest
apply(HttpRequest httpRequest)
-
-
-
Constructor Detail
-
PayloadSerializingInterceptor
public PayloadSerializingInterceptor(MessageSerializer serializer)
-
-
Method Detail
-
apply
public HttpRequest apply(HttpRequest httpRequest)
- Specified by:
apply
in interfaceFunction<HttpRequest,HttpRequest>
-
-