@Test void testContainsHeader() { DefaultHttpHeaderManager manager = new DefaultHttpHeaderManager(); manager.addHeader("NAME", "VALUE"); assertEquals("VALUE", manager.getHeader("NAME")); assertTrue(manager.containsHeader("NAME")); }
@Override public boolean containsHeader(String name) { return headers.containsKey(name.toUpperCase(locale)); }
DefaultHttpHeaderManager implements HttpHeaderManager { @Override public boolean containsHeader(String name) { return headers.containsKey(name.toUpperCase(locale)); } }
DefaultHttpHeaderManager implements HttpHeaderManager { @Override public boolean containsHeader(String name) { return headers.containsKey(name.toUpperCase(locale)); } DefaultHttpHeaderManager(); }
DefaultHttpHeaderManager implements HttpHeaderManager { @Override public boolean containsHeader(String name) { return headers.containsKey(name.toUpperCase(locale)); } DefaultHttpHeaderManager(); @Override void addHeader(String name, String value); @Override boolean containsHeader(String name); @Override long getDateHeader(String name); @Override String getHeader(String name); @Override Enumeration<String> getHeaderNames(); @Override Enumeration<String> getHeaders(String name); @Override int getIntHeader(String name); @Override void setHeader(String name, String value); }
DefaultHttpHeaderManager implements HttpHeaderManager { @Override public boolean containsHeader(String name) { return headers.containsKey(name.toUpperCase(locale)); } DefaultHttpHeaderManager(); @Override void addHeader(String name, String value); @Override boolean containsHeader(String name); @Override long getDateHeader(String name); @Override String getHeader(String name); @Override Enumeration<String> getHeaderNames(); @Override Enumeration<String> getHeaders(String name); @Override int getIntHeader(String name); @Override void setHeader(String name, String value);  }