@Test public void testHeadersImmutable() throws IOException { JRestlessContainerRequest request = new DefaultJRestlessContainerRequest(URI.create("/123"), URI.create("/456"), "DELETE", new ByteArrayInputStream("123".getBytes()), new HashMap<>()); assertThrows(UnsupportedOperationException.class, () -> request.getHeaders().put("0", ImmutableList.of())); }
@Override public Map<String, List<String>> getHeaders() { return headers; }
DefaultJRestlessContainerRequest implements JRestlessContainerRequest { @Override public Map<String, List<String>> getHeaders() { return headers; } }
DefaultJRestlessContainerRequest implements JRestlessContainerRequest { @Override public Map<String, List<String>> getHeaders() { return headers; } DefaultJRestlessContainerRequest(@Nonnull RequestAndBaseUri requestAndBaseUri, @Nonnull String httpMethod,
			@Nonnull InputStream entityStream, @Nonnull Map<String, List<String>> headers);  DefaultJRestlessContainerRequest(@Nullable URI baseUri, @Nonnull URI requestUri, @Nonnull String httpMethod,
			@Nonnull InputStream entityStream, @Nonnull Map<String, List<String>> headers); }
DefaultJRestlessContainerRequest implements JRestlessContainerRequest { @Override public Map<String, List<String>> getHeaders() { return headers; } DefaultJRestlessContainerRequest(@Nonnull RequestAndBaseUri requestAndBaseUri, @Nonnull String httpMethod,
			@Nonnull InputStream entityStream, @Nonnull Map<String, List<String>> headers);  DefaultJRestlessContainerRequest(@Nullable URI baseUri, @Nonnull URI requestUri, @Nonnull String httpMethod,
			@Nonnull InputStream entityStream, @Nonnull Map<String, List<String>> headers); @Override URI getBaseUri(); @Override URI getRequestUri(); @Override String getHttpMethod(); @Override InputStream getEntityStream(); @Override Map<String, List<String>> getHeaders(); @Override boolean equals(final Object other); @Override int hashCode(); @Override String toString(); }
DefaultJRestlessContainerRequest implements JRestlessContainerRequest { @Override public Map<String, List<String>> getHeaders() { return headers; } DefaultJRestlessContainerRequest(@Nonnull RequestAndBaseUri requestAndBaseUri, @Nonnull String httpMethod,
			@Nonnull InputStream entityStream, @Nonnull Map<String, List<String>> headers);  DefaultJRestlessContainerRequest(@Nullable URI baseUri, @Nonnull URI requestUri, @Nonnull String httpMethod,
			@Nonnull InputStream entityStream, @Nonnull Map<String, List<String>> headers); @Override URI getBaseUri(); @Override URI getRequestUri(); @Override String getHttpMethod(); @Override InputStream getEntityStream(); @Override Map<String, List<String>> getHeaders(); @Override boolean equals(final Object other); @Override int hashCode(); @Override String toString();  }