@Test public void testGetHeaderType$request() throws Exception { assertThat(HeaderHelper.getHeaderType("Accept"),equalTo("RequestHeader")); }
static String getHeaderType(String name) { if(matches(name, GENERAL_HEADERS)) { return "GeneralHeader"; } else if(matches(name, REQUEST_HEADERS)) { return "RequestHeader"; } else if(matches(name, ENTITY_HEADERS)) { return "EntityHeader"; } return "MessageHeader"; }
HeaderHelper { static String getHeaderType(String name) { if(matches(name, GENERAL_HEADERS)) { return "GeneralHeader"; } else if(matches(name, REQUEST_HEADERS)) { return "RequestHeader"; } else if(matches(name, ENTITY_HEADERS)) { return "EntityHeader"; } return "MessageHeader"; } }
HeaderHelper { static String getHeaderType(String name) { if(matches(name, GENERAL_HEADERS)) { return "GeneralHeader"; } else if(matches(name, REQUEST_HEADERS)) { return "RequestHeader"; } else if(matches(name, ENTITY_HEADERS)) { return "EntityHeader"; } return "MessageHeader"; } private  HeaderHelper(); }
HeaderHelper { static String getHeaderType(String name) { if(matches(name, GENERAL_HEADERS)) { return "GeneralHeader"; } else if(matches(name, REQUEST_HEADERS)) { return "RequestHeader"; } else if(matches(name, ENTITY_HEADERS)) { return "EntityHeader"; } return "MessageHeader"; } private  HeaderHelper();  }
HeaderHelper { static String getHeaderType(String name) { if(matches(name, GENERAL_HEADERS)) { return "GeneralHeader"; } else if(matches(name, REQUEST_HEADERS)) { return "RequestHeader"; } else if(matches(name, ENTITY_HEADERS)) { return "EntityHeader"; } return "MessageHeader"; } private  HeaderHelper();   }