Class BasecampUserAgentValidator

java.lang.Object
io.micronaut.chatbots.basecamp.core.BasecampUserAgentValidator

public final class BasecampUserAgentValidator extends Object
Utility class to validate the HttpHeaders.USER_AGENT for a Basecamp chatbot webhook.
Since:
1.0.0
Author:
Sergio del Amo
  • Method Details

    • validateUserAgent

      public static boolean validateUserAgent(@Nullable @Nullable String userAgent)
      Parameters:
      userAgent - HTTP Header User Agent value
      Returns:
      true if the User Agent HTTP Header value contains "Basecamp".