code: public void setCookies(final Cookie[] cookies) {
          this.cookies.clear();
          if (cookies != null) {
              for (final Cookie cookie : cookies) {
                  cookie(cookie);
              }
          }
      }
docs: Sets the cookies.
  
  @param cookies The cookies to set