org.apache.tinkerpop.gremlin.driver

## Interface HandshakeInterceptor

- All Superinterfaces:
    Function<FullHttpRequest,FullHttpRequest>, UnaryOperator<FullHttpRequest>

      public interface HandshakeInterceptor
      extends UnaryOperator<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–2021 Apache Software Foundation. All rights reserved.