Class TyrusClientEndpointConfigurator


  • public class TyrusClientEndpointConfigurator
    extends jakarta.websocket.ClientEndpointConfig.Configurator
    Extended Configurator that can be used for subclassing the user provided configurator. If done so, the additional methods are invoked as described by the methods.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void beforeRequest​(UpgradeRequest upgradeRequest)
      This method is called by the implementation after it has formulated the handshake request that will be used to initiate the connection to the server, but before ClientEndpointConfig.Configurator.beforeRequest(Map) is invoked.
      • Methods inherited from class jakarta.websocket.ClientEndpointConfig.Configurator

        afterResponse, beforeRequest
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TyrusClientEndpointConfigurator

        public TyrusClientEndpointConfigurator()
    • Method Detail

      • beforeRequest

        public void beforeRequest​(UpgradeRequest upgradeRequest)
        This method is called by the implementation after it has formulated the handshake request that will be used to initiate the connection to the server, but before ClientEndpointConfig.Configurator.beforeRequest(Map) is invoked. This allows the developer to inspect the handshake request itself prior to the start of the handshake interaction.

        For modifying the HandshakeRequestHeaders, use ClientEndpointConfig.Configurator.beforeRequest(Map).

        Parameters:
        upgradeRequest - the read-only handshake request the implementation is about to send to start the handshake interaction.