public void addDefaultHeader(String key,String value){
  if (userHeaders == null) {
    userHeaders=new Hashtable();
  }
  userHeaders.put(key,value);
}

public void addDefaultHeader ( String key , String value ) { if ( userHeaders == null ) { userHeaders = new Hashtable ( ) ; } userHeaders . put ( key , value ) ; }
adds a header to the global default headers , this header will be implicitly added to all requests going out from this point onwards . the main use case for this is for authentication information communication via the header .
