protected void validate() {
        if (name == null || "".equals(name) || value == null || path == null) {
            throw new IllegalArgumentException("Required attributes are not set or " +
                    "any non-null attribute set to null");
        }

        if (name.indexOf(';') != -1) {
            throw new IllegalArgumentException(
                    "Cookie names cannot contain a ';': " + name);
        }

        if (domain != null && domain.contains(":")) {
            throw new IllegalArgumentException("Domain should not contain a port: " + domain);
        }
    }
Create a cookie.

@param name The cookie's name
@param value The cookie's value
@param path The path the cookie is for
selendroid-server/src/main/java/io/selendroid/server/model/Cookie.java