brikar-common/src/main/java/com/truward/brikar/common/log/LogUtil.java
public static boolean isValidRequestVector(@Nullable String requestVector) {
    if (requestVector == null || requestVector.isEmpty() || requestVector.length() > MAX_REQUEST_VECTOR_LENGTH) {
      return false;
    }

    // verify, that each character is within the allowed bounds
    for (int i = 0; i < requestVector.length(); ++i) {
      final char ch = requestVector.charAt(i);
      if (ch <= 32 || ch >= 127) {
        return false;
      }
    }

    return true;
  }
public static boolean isValidRequestVector(@Nullable String requestVector) {
    if (requestVector == null || requestVector.isEmpty() || requestVector.length() > MAX_REQUEST_VECTOR_LENGTH) {
      return false;
    }

    // verify, that each character is within the allowed bounds
    for (int i = 0; i < requestVector.length(); ++i) {
      final char ch = requestVector.charAt(i);
      if (ch <= 32 || ch >= 127) {
        return false;
      }
    }

    return true;
  }
public static boolean isValidRequestVector ( @ Nullable String requestVector ) { if ( requestVector == null || requestVector . isEmpty ( ) || requestVector . length ( ) > MAX_REQUEST_VECTOR_LENGTH ) { return false ; } // verify, that each character is within the allowed bounds for ( int i = 0 ; i < requestVector . length ( ) ; ++ i ) { final char ch = requestVector . charAt ( i ) ; if ( ch <= 32 || ch >= 127 ) { return false ; } } return true ; }
Validates, that passed request vector is valid. This function is used to prevent the potential attacker to send
garbage request vectors into the service.
If passed request vector is invalid, it should be discarded.

@param requestVector Request vector to validate
@return True, if passed request vector is valid, false otherwise.
Validates that passed request vector is valid . This function is used to prevent the potential attacker to send garbage request vectors into the service . If passed request vector is invalid it should be discarded .