1. 26 10月, 2018 1 次提交
  2. 25 10月, 2018 1 次提交
  3. 17 9月, 2018 1 次提交
  4. 25 7月, 2018 1 次提交
  5. 05 7月, 2018 1 次提交
  6. 27 2月, 2018 1 次提交
  7. 30 6月, 2017 1 次提交
  8. 07 6月, 2017 1 次提交
    • J
      Consistent use of @Nullable across the codebase (even for internals) · f813712f
      Juergen Hoeller 提交于
      Beyond just formally declaring the current behavior, this revision actually enforces non-null behavior in selected signatures now, not tolerating null values anymore when not explicitly documented. It also changes some utility methods with historic null-in/null-out tolerance towards enforced non-null return values, making them a proper citizen in non-null assignments.
      
      Some issues are left as to-do: in particular a thorough revision of spring-test, and a few tests with unclear failures (ignored as "TODO: NULLABLE") to be sorted out in a follow-up commit.
      
      Issue: SPR-15540
      f813712f
  9. 01 6月, 2017 1 次提交
  10. 31 5月, 2017 1 次提交
  11. 27 5月, 2017 1 次提交
    • S
      Introduce null-safety of Spring Framework API · 87598f48
      Sebastien Deleuze 提交于
      This commit introduces 2 new @Nullable and @NonNullApi
      annotations that leverage JSR 305 (dormant but available via
      Findbugs jsr305 dependency and already used by libraries
      like OkHttp) meta-annotations to specify explicitly
      null-safety of Spring Framework parameters and return values.
      
      In order to avoid adding too much annotations, the
      default is set at package level with @NonNullApi and
      @Nullable annotations are added when needed at parameter or
      return value level. These annotations are intended to be used
      on Spring Framework itself but also by other Spring projects.
      
      @Nullable annotations have been introduced based on Javadoc
      and search of patterns like "return null;". It is expected that
      nullability of Spring Framework API will be polished with
      complementary commits.
      
      In practice, this will make the whole Spring Framework API
      null-safe for Kotlin projects (when KT-10942 will be fixed)
      since Kotlin will be able to leverage these annotations to
      know if a parameter or a return value is nullable or not. But
      this is also useful for Java developers as well since IntelliJ
      IDEA, for example, also understands these annotations to
      generate warnings when unsafe nullable usages are detected.
      
      Issue: SPR-15540
      87598f48
  12. 24 5月, 2017 1 次提交
  13. 20 4月, 2017 1 次提交
  14. 25 3月, 2017 2 次提交
  15. 23 3月, 2017 2 次提交
    • R
      String encoding for any MIME type · 3d68c496
      Rossen Stoyanchev 提交于
      CharSequenceEncoder now supports all MIME types, however since encoding
      Flux<String> can overlap with other encoders (e.g. SSE) there are now
      two ways to create a CharSequenceEncoder -- with support for text/plain
      only or with support for any MIME type.
      
      In WebFlux configuration we insert one CharSequenceEncoder for
      text/plain (as we have so far) and a second instance with support for
      any MIME type at the very end.
      
      Issue: SPR-15374
      3d68c496
    • R
      Revise "streaming" MediaType support · 2896c5d2
      Rossen Stoyanchev 提交于
      Push the knowledge of what media types represent "streaming" down to
      the Encoder level where knowledge is required (e.g. to encode a
      JSON array vs a stream of JSON elements).
      2896c5d2
  16. 22 3月, 2017 1 次提交
    • R
      Polish + minor refactoring of SSE reader and writer · a999f40d
      Rossen Stoyanchev 提交于
      Instead of accepting List<Encoder|Decoder> and then look for the first
      to support JSON, always expect a single JSON [Encoder|Decoder] and use
      that unconditionally.
      
      When writing use the nested ResolvableType instead of the Class of the
      actual value which should better support generics.
      
      Remove the SSE hint and pass "text/event-stream" as the media type
      instead to serve as a hint. We are expecting a JSON encoder and using
      it unconditionally in any case so this should be good enough.
      a999f40d
  17. 21 3月, 2017 2 次提交
  18. 24 12月, 2016 1 次提交
    • S
      Allow to specify hints with the functional web API · fbf88d19
      Sebastien Deleuze 提交于
      The most common use case is specifying JSON views.
      
      ServerResponse.BodyBuilder#hint(String, Object) allows to
      specify response body serialization hints.
      
      ServerRequest#body(BodyExtractor, Map) allows to specify
      request body extraction hints.
      
      Issue: SPR-15030
      fbf88d19
  19. 21 12月, 2016 1 次提交
  20. 08 12月, 2016 1 次提交
  21. 25 10月, 2016 1 次提交
  22. 12 10月, 2016 1 次提交
  23. 27 9月, 2016 1 次提交
  24. 20 9月, 2016 1 次提交
  25. 13 9月, 2016 1 次提交
  26. 12 9月, 2016 1 次提交
  27. 01 9月, 2016 2 次提交
    • S
      Let users control SSE stream completion · 06d4bb6a
      Sebastien Deleuze 提交于
      This commit avoid merging automatically the SSE stream with
      Flux.never(). Since browsers automatically reconnect when
      the HTTP connection is closed, it is now the user responsability
      to optionally perform a concatWith(Flux.never()) on streams that
      complete in order to avoid receiving the data multiple times on
      client side.
      
      The behavior with hot streams that never complete does not change.
      
      Issue: SPR-14578
      06d4bb6a
    • A
      Refactored SseEvent to ServerSentEvent · 16b525f6
      Arjen Poutsma 提交于
       - Renamed SseEvent to ServerSentEvent to make the name less redundant.
       - ServerSentEvent is now immutable, having a builder to create new instances.
       - Realigned the class properties to more closely match the events
         described in the spec, so that `reconnectTime` becomes `retry`, and
         `name` becomes `event`.
      16b525f6
  28. 23 7月, 2016 1 次提交
  29. 21 7月, 2016 1 次提交
  30. 19 7月, 2016 2 次提交
  31. 15 7月, 2016 3 次提交
  32. 01 7月, 2016 1 次提交
  33. 24 6月, 2016 1 次提交