public HttpCookie(String name,String value){
  String ntrim=name.trim();
  if (!isValidName(ntrim)) {
    throw new IllegalArgumentException("Invalid name: " + name);
  }
  this.name=ntrim;
  this.value=value;
}

public HttpCookie ( String name , String value ) { String ntrim = name . trim ( ) ; if ( ! isValidName ( ntrim ) ) { throw new IllegalArgumentException ( "Invalid name: " + name ) ; } this . name = ntrim ; this . value = value ; }
creates a new cookie .
