Interface SseMessageEndpointValidator

All Known Implementing Classes:
DefaultSseMessageEndpointValidator
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 SseMessageEndpointValidator
Validate the that message endpoint in the SSE transport is valid. Throws InvalidSseMessageEndpointException when then endpoint is not valid.
Author:
Daniel Garnier-Moiroux
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(URI sseUri, String messageEndpoint)
    Validate the message endpoint coming from an SSE connection.
  • Method Details

    • validate

      void validate(URI sseUri, String messageEndpoint) throws InvalidSseMessageEndpointException
      Validate the message endpoint coming from an SSE connection. Throws if not valid.
      Parameters:
      sseUri - the URI used to establish the SSE connection
      messageEndpoint - the message endpoint from the SSE connection
      Throws:
      InvalidSseMessageEndpointException - error thrown if the message endpoint is not valid.