public void addRequestProperty(String key,String value){
  if (connected)   throw new IllegalStateException("Already connected");
  if (key == null)   throw new NullPointerException("key is null");
  if (requests == null)   requests=new MessageHeader();
  requests.add(key,value);
}

public void addRequestProperty ( String key , String value ) { if ( connected ) throw new IllegalStateException ( "Already connected" ) ; if ( key == null ) throw new NullPointerException ( "key is null" ) ; if ( requests == null ) requests = new MessageHeader ( ) ; requests . add ( key , value ) ; }
adds a general request property specified by a key - value pair . this method will not overwrite existing values associated with the same key .
