Class BasecampUserAgentValidator


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

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean validateUserAgent​(java.lang.String userAgent)  
      • Methods inherited from class java.lang.Object

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

      • validateUserAgent

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