@Test void testGetHeaders() { DefaultHttpHeaderManager manager = new DefaultHttpHeaderManager(); assertNotNull(manager.getHeaders("NAME")); assertFalse(manager.getHeaders("NAME").hasMoreElements()); }
@Override public Enumeration<String> getHeaders(String name) { Enumeration<String> result = Collections.enumeration(Collections.emptyList()); if (headers.containsKey(name.toUpperCase(locale))) { result = headers.get(name.toUpperCase(locale)).getValues(); } return result; }
DefaultHttpHeaderManager implements HttpHeaderManager { @Override public Enumeration<String> getHeaders(String name) { Enumeration<String> result = Collections.enumeration(Collections.emptyList()); if (headers.containsKey(name.toUpperCase(locale))) { result = headers.get(name.toUpperCase(locale)).getValues(); } return result; } }
DefaultHttpHeaderManager implements HttpHeaderManager { @Override public Enumeration<String> getHeaders(String name) { Enumeration<String> result = Collections.enumeration(Collections.emptyList()); if (headers.containsKey(name.toUpperCase(locale))) { result = headers.get(name.toUpperCase(locale)).getValues(); } return result; } DefaultHttpHeaderManager(); }
DefaultHttpHeaderManager implements HttpHeaderManager { @Override public Enumeration<String> getHeaders(String name) { Enumeration<String> result = Collections.enumeration(Collections.emptyList()); if (headers.containsKey(name.toUpperCase(locale))) { result = headers.get(name.toUpperCase(locale)).getValues(); } return result; } 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 Enumeration<String> getHeaders(String name) { Enumeration<String> result = Collections.enumeration(Collections.emptyList()); if (headers.containsKey(name.toUpperCase(locale))) { result = headers.get(name.toUpperCase(locale)).getValues(); } return result; } 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);  }