public static String toPropertyName(String httpHeader){
  httpHeader=httpHeader.replace('-','$');
  return "http_" + httpHeader.toLowerCase();
}

public static String toPropertyName ( String httpHeader ) { httpHeader = httpHeader . replace ( '-' , '$' ) ; return "http_" + httpHeader . toLowerCase ( ) ; }
converts an http header name to a selector compatible property name . ' - ' character is converted to ' $ ' . the return property name will also be all lower case with an " http_ " prepended . for example " content - type " would be converted to " http_content $ type " ;
