core/play/src/main/java/play/core/cookie/encoding/ClientCookieEncoder.java
public String encode(Cookie... cookies) {
    if (cookies == null) {
      throw new NullPointerException("cookies");
    }
    if (cookies.length == 0) {
      return null;
    }

    StringBuilder buf = new StringBuilder();
    for (Cookie c : cookies) {
      if (c == null) {
        break;
      }

      encode(buf, c);
    }
    return stripTrailingSeparatorOrNull(buf);
  }
public String encode(Cookie... cookies) {
    if (cookies == null) {
      throw new NullPointerException("cookies");
    }
    if (cookies.length == 0) {
      return null;
    }

    StringBuilder buf = new StringBuilder();
    for (Cookie c : cookies) {
      if (c == null) {
        break;
      }

      encode(buf, c);
    }
    return stripTrailingSeparatorOrNull(buf);
  }
public String encode ( Cookie ... cookies ) { if ( cookies == null ) { throw new NullPointerException ( "cookies" ) ; } if ( cookies . length == 0 ) { return null ; } StringBuilder buf = new StringBuilder ( ) ; for ( Cookie c : cookies ) { if ( c == null ) { break ; } encode ( buf , c ) ; } return stripTrailingSeparatorOrNull ( buf ) ; }
Encodes the specified cookies into a single Cookie header value.

@param cookies some cookies
@return a Rfc6265 style Cookie header value, null if no cookies are passed.
Encodes the specified cookies into a single Cookie header value .