@Test public void testBasic() throws Exception { final HttpServletRequest request = mock(HttpServletRequest.class); when(request.getHeader(eq("Content-Type"))).thenReturn("text/plain"); final MinijaxServletHttpHeaders httpHeaders = new MinijaxServletHttpHeaders(request); assertEquals("text/plain", httpHeaders.getHeaderString("Content-Type")); }
@Override public String getHeaderString(final String name) { return request.getHeader(name); }
MinijaxServletHttpHeaders extends MinijaxHttpHeaders { @Override public String getHeaderString(final String name) { return request.getHeader(name); } }
MinijaxServletHttpHeaders extends MinijaxHttpHeaders { @Override public String getHeaderString(final String name) { return request.getHeader(name); } MinijaxServletHttpHeaders(final HttpServletRequest request); }
MinijaxServletHttpHeaders extends MinijaxHttpHeaders { @Override public String getHeaderString(final String name) { return request.getHeader(name); } MinijaxServletHttpHeaders(final HttpServletRequest request); @Override List<String> getRequestHeader(final String name); @Override String getHeaderString(final String name); @Override MultivaluedMap<String, String> getRequestHeaders(); @Override Map<String, Cookie> getCookies(); }
MinijaxServletHttpHeaders extends MinijaxHttpHeaders { @Override public String getHeaderString(final String name) { return request.getHeader(name); } MinijaxServletHttpHeaders(final HttpServletRequest request); @Override List<String> getRequestHeader(final String name); @Override String getHeaderString(final String name); @Override MultivaluedMap<String, String> getRequestHeaders(); @Override Map<String, Cookie> getCookies();  }