@Test public void ifModifiedSince() { HashRequestHeaders hs = withHeader(Http.Header.IF_MODIFIED_SINCE, "Tue, 3 Jun 2008 11:05:30 GMT"); assertThat(hs.ifModifiedSince().orElse(null), is(ZDT)); }
@Override public Optional<ZonedDateTime> ifModifiedSince() { return first(Http.Header.IF_MODIFIED_SINCE).map(Http.DateTime::parse); }
HashRequestHeaders extends ReadOnlyParameters implements RequestHeaders { @Override public Optional<ZonedDateTime> ifModifiedSince() { return first(Http.Header.IF_MODIFIED_SINCE).map(Http.DateTime::parse); } }
HashRequestHeaders extends ReadOnlyParameters implements RequestHeaders { @Override public Optional<ZonedDateTime> ifModifiedSince() { return first(Http.Header.IF_MODIFIED_SINCE).map(Http.DateTime::parse); } HashRequestHeaders();   HashRequestHeaders(Map<String, List<String>> initialContent); }
HashRequestHeaders extends ReadOnlyParameters implements RequestHeaders { @Override public Optional<ZonedDateTime> ifModifiedSince() { return first(Http.Header.IF_MODIFIED_SINCE).map(Http.DateTime::parse); } HashRequestHeaders();   HashRequestHeaders(Map<String, List<String>> initialContent); @Override Optional<MediaType> contentType(); @Override OptionalLong contentLength(); @Override Parameters cookies(); @Override List<MediaType> acceptedTypes(); @Override boolean isAccepted(MediaType mediaType); @Override Optional<MediaType> bestAccepted(MediaType... mediaTypes); @Override Optional<ZonedDateTime> acceptDatetime(); @Override Optional<ZonedDateTime> date(); @Override Optional<ZonedDateTime> ifModifiedSince(); @Override Optional<ZonedDateTime> ifUnmodifiedSince(); @Override Optional<URI> referer(); }
HashRequestHeaders extends ReadOnlyParameters implements RequestHeaders { @Override public Optional<ZonedDateTime> ifModifiedSince() { return first(Http.Header.IF_MODIFIED_SINCE).map(Http.DateTime::parse); } HashRequestHeaders();   HashRequestHeaders(Map<String, List<String>> initialContent); @Override Optional<MediaType> contentType(); @Override OptionalLong contentLength(); @Override Parameters cookies(); @Override List<MediaType> acceptedTypes(); @Override boolean isAccepted(MediaType mediaType); @Override Optional<MediaType> bestAccepted(MediaType... mediaTypes); @Override Optional<ZonedDateTime> acceptDatetime(); @Override Optional<ZonedDateTime> date(); @Override Optional<ZonedDateTime> ifModifiedSince(); @Override Optional<ZonedDateTime> ifUnmodifiedSince(); @Override Optional<URI> referer();  }