1. 07 9月, 2016 1 次提交
    • B
      Add ResolvedResource in resource handling chain · ccb3c44d
      Brian Clozel 提交于
      Prior to this commit, the resource handling chain and its
      `ResourceResolvers` would use specific `Resource` implementations in
      order to add resource metadata to the HTTP response. For example,
      `VersionedResource` and `EncodedResource` are both adding specific HTTP
      response headers.
      
      This commit aims at making this mechanism more stable and reusable,
      since the previous implementation would fail in case a resolved resource
      would be both a `VersionedResource` wrapping a `EncodedResource` (or the
      other way arount). Only one of the specific implementations would
      contribute its metadata since the code supporting that in
      `ResourceHttpRequestHandler` would only check for `instanceof` tests,
      whereas those implementations are acutally delegating calls to
      the wrapped resource.
      
      Now both `VersionedResource` and `EncodedResource` have been replaced by
      specific implementations of `ResolvedResource`, which directly provides
      those HTTP response headers as part of `getResponseHeaders()`.
      
      This commit applies the same changes for the web reactive
      implementations and its `ResourceWebHandler`.
      
      Issue: SPR-14264
      ccb3c44d
  2. 06 9月, 2016 1 次提交
    • R
      Resource handling support for Spring Web Reactive · 1ae64bfb
      Rossen Stoyanchev 提交于
      A straight-forward port of the resource handling support in
      spring-webmvc to spring-web-reactive. Primarily adapting contracts and
      implementations to use the reactive request and response and the
      reactive ResourceHttpMessageWriter.
      
      Issue: SPR-14521
      1ae64bfb