public static String toHeaderElement(String name,String value){
  return OAuth.percentEncode(name) + "=\"" + OAuth.percentEncode(value)+ "\"";
}

public static String toHeaderElement ( String name , String value ) { return OAuth . percentEncode ( name ) + "=\"" + OAuth . percentEncode ( value ) + "\"" ; }
helper method to concatenate a parameter and its value to a pair that can be used in an http header . this method percent encodes both parts before joining them .
