Interface ServiceRequestCustomizer

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ServiceRequestCustomizer
Functional interface for modifying service requests.

This can be used to modify service requests before they are sent to the server, for example to access features not currently supported by Jaybird.

If you implement this interface to access a feature not implemented by Jaybird, please consider creating an improvement ticket on the Jaybird GitHub repository as well.

Since:
6.0.5
See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    customize(ServiceRequestBuffer serviceRequest, ServiceRequestContext requestContext)
    Provides access to, and allows customization of, a service request.
  • Method Details

    • customize

      void customize(ServiceRequestBuffer serviceRequest, ServiceRequestContext requestContext)
      Provides access to, and allows customization of, a service request.

      Called by the service manager just before the request is sent to the server. Exceptions thrown by the customizer terminate the service request before it's sent to the server.

      Incorrect use (e.g. adding wrong arguments or values, removing or replacing arguments, etc.) may result in errors on Firebird or in Jaybird.

      Parameters:
      serviceRequest - service request buffer populated by the service manager, to be modified by this customizer
      requestContext - service request context information