code: public String getScheme()
      {
          String scheme = _uri.getScheme();
          if (scheme == null && _connection != null) scheme = _connection.getDefaultScheme();
          return scheme == null ? "http" : scheme;
      }
docs: Get the request Scheme. The scheme is obtained from an absolute URI. If the URI in the
  request is not absolute, then the connections default scheme is returned. If there is no
  connection "http" is returned.
  
  @return The request scheme (eg. "http", "https", etc.)