org.apache.tinkerpop.gremlin.driver

## Interface HandshakeInterceptor

- All Superinterfaces:
    Function<io.netty.handler.codec.http.FullHttpRequest,io.netty.handler.codec.http.FullHttpRequest>, UnaryOperator<io.netty.handler.codec.http.FullHttpRequest>

      public interface HandshakeInterceptor
      extends UnaryOperator<io.netty.handler.codec.http.FullHttpRequest>

  This function is called when the websocket handshake is attempted and the first `FullHttpRequest` is sent to the server. The interceptor allows this message to be modified as needed before it is sent to the server. Implementations are supplied to `Cluster.Builder.handshakeInterceptor(HandshakeInterceptor)`.

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `static HandshakeInterceptor` | `NO_OP` The default implementation of a `HandshakeInterceptor` and behaves as a no-op.

  - ### Method Summary

    - ### Methods inherited from interface java.util.function.UnaryOperator

      `identity`

    - ### Methods inherited from interface java.util.function.Function

      `andThen, apply, compose`

- - ### Field Detail

    - #### NO_OP

          static final HandshakeInterceptor NO_OP

      The default implementation of a `HandshakeInterceptor` and behaves as a no-op.

Copyright © 2013–2022 Apache Software Foundation. All rights reserved.