1. 31 8月, 2016 1 次提交
  2. 15 7月, 2016 2 次提交
  3. 28 4月, 2016 1 次提交
  4. 22 4月, 2016 1 次提交
    • R
      Updates to WebHandler support · df7c8e55
      Rossen Stoyanchev 提交于
      Rename two classes each adapting to WebHandler to avoid confusing them:
      1. HttpWebHandlerAdapter adapts from the low level HttpHandler to any
      WebHandler (e.g. DispatcherHandler).
      2. SimpleHandlerAdapter adapts the plain WebHandler for use within the
      DispatcherHandler.
      
      This commit also fixes an issue in WebHttpHandlerBuilder to ensure that
      WebExceptionHandler's are inserted before and not after WebFilter's.
      df7c8e55
  5. 28 1月, 2016 4 次提交
    • R
      Refine names in web.server and polish Javadoc · 381855aa
      Rossen Stoyanchev 提交于
      WebServerExchange -> ServerWebExchange
      
      Follows the same convention as in the http package also better allowing
      the possibility for a client equivalent in the future.
      
      WebToHttpHandlerBuilder -> WebHttpHandlerBuilder
      WebToHttpHandlerAdapter -> WebHttpHandlerAdapter
      
      More consistent with Spring conventions.
      381855aa
    • R
      Refine web.server package structure · e59b927f
      Rossen Stoyanchev 提交于
      Introduce adapter and handler sub-packages under web.server following a
      review prompted by the addition of the session package and the package
      cycle it brought in based on dependency on session.WebSessionManager.
      e59b927f
    • R
      Server-side session support · 407d11a5
      Rossen Stoyanchev 提交于
      This commit adds initial support for a maintaining a server-side
      session with attributes across HTTP requests. The WebSession
      abstraction can be accessed via WebServerExchange from a WebFilter or
      the target WebHandler.
      
      The session sub-package contains additional abstractions for creating
      and managing sessions providing a basis for extensibility (e.g. Spring
      Session). Those include WebSessionManager, SessionIdStrategy, and
      SessionStore along with a cookie-based session id strategy and an
      in-memory session store in use by default.
      
      Note that the current API does not provide a way to invalidate or
      re-create the session from server side code.
      407d11a5
    • R
      Add setComplete + beforeCommit to ServerHttpResponse · 3744549a
      Rossen Stoyanchev 提交于
      setComplete replaces writeHeaders as a more general lifecycle method
      to perform any kind of handling at the end of request processing, for
      example to ensure headers are written if not already.
      
      beforeCommit provides an extension point for an action to be invoked
      just before the response is committed, e.g. adding headers/cookies.
      3744549a
  6. 20 1月, 2016 1 次提交
    • S
      demote cyclic dependency under reactor-core reactor package · 198e3164
      Stephane Maldini 提交于
      -> reactor.Mono : reactor.core.publisher.Mono
      -> reactor.Flux : reactor.core.publisher.Flux
      -> reactor.Processors : reactor.core.publisher.Processors
      -> reactor.Timers : reactor.core.timer.Timers
      -> reactor.Subscribers : reactor.core.subscriber.Subscribers
      198e3164
  7. 14 1月, 2016 1 次提交
    • R
      Log and handle unresolved exceptions · 437c127b
      Rossen Stoyanchev 提交于
      Before this change use of ExceptionHandlingWebHandler did ensure no
      error signals are allowed to escape (hence relying on runtime
      behavior).
      
      This change ensures the same is done even when
      ExceptionHandlingWebHandler is not configured for use, at the lowest
      level which is the WebToHttpHandlerAdapter.
      437c127b
  8. 10 1月, 2016 1 次提交
    • R
      Re-introduce writeHeaders() in ServerHttpResponse · eedc9081
      Rossen Stoyanchev 提交于
      This commit brings back the writeHeaders method on ServerHttpResponse
      that was once added (2a6a4f) and then removed (9c7151).
      
      This version is a little simpler since writeHeaders doesn't explicitly
      flush/send headers which runtimes are expected to do by default.
      Instead the main purpose of writeHeaders now is to ensure changes made
      via HttpHeaders are applied to the underlying runtime response at some
      point and we now do that once at the very end.
      
      This approach provides the most flexibility (vs keeping HttpHeaders in
      sync) because it allows a full and consistent set of mutative
      operations for both headers and cookies (to be added) regardless of the
      API exposed by the underlying runtime.
      eedc9081
  9. 09 1月, 2016 2 次提交
    • R
      Add WebServerExchange · 4f614fa0
      Rossen Stoyanchev 提交于
      This change adds a WebServerExchange and updates all contracts at the
      the same level (i.e. org.springframework.web.server) as well as the
      org.springframework.web.reactive level to use it so that all
      framework-related code will have access to server-side processing
      features such as request attributes (and others to come).
      4f614fa0
    • R
      Separate out web.server from http.server.reactive · 54e4e012
      Rossen Stoyanchev 提交于
      This change separates out lower-level HTTP adapter code from the more
      (framework-specific) HTTP processing into a separate package under
      org.springframework.web.server (not under org.springframework.http).
      54e4e012
  10. 07 1月, 2016 1 次提交
    • S
      Use Reactor 2.5 Flux and Mono Rx light API · 8ef7e2ff
      Sebastien Deleuze 提交于
      Flux and Mono are used both for implementation and exposed at API
      level to express 1 versus N semantic and to provide default Rx
      operators:
      - Flux<T> for multiple values Publisher (issue #48)
      - Mono<T> for single value Publisher (issue #50)
      - Mono<Void> for Publisher with no value (issue #49)
      8ef7e2ff
  11. 09 12月, 2015 1 次提交
  12. 03 12月, 2015 1 次提交
  13. 25 11月, 2015 1 次提交
  14. 21 11月, 2015 1 次提交
  15. 14 11月, 2015 1 次提交
    • R
      Refactor package structure for web · 81867fa4
      Rossen Stoyanchev 提交于
      The web related code is now under org.springframework.web.reactive.
      This is parallel to org.springframework.web (the top-level package of
      spring-webmvc).
      81867fa4
  16. 29 10月, 2015 2 次提交
  17. 25 8月, 2015 2 次提交
    • R
      Add simple URL mapping and handling · bc7a5acd
      Rossen Stoyanchev 提交于
      This commit adds support for simple URL handler mapping (exact path
      match) and an adapter for the HttpHandler interface to be used to
      handle the request.
      
      The SimpleUrlHandlerMappingIntegrationTests then maps the URLs
      "/foo" and "/bar" to two different handlers.
      bc7a5acd
    • R
      Refactor package structure · f020a1ad
      Rossen Stoyanchev 提交于
      Introduce http and dispatch packages under org.springframework.web to
      separate HTTP-specific adapter code from higher level web framework
      code. Move classes into their respective locations.
      f020a1ad
  18. 12 8月, 2015 1 次提交
    • R
      Add ServerHttpRequest & ServerHttpResponse · 2cb32a0f
      Rossen Stoyanchev 提交于
      This commit introduces HTTP request and response abstractions along
      with Servlet-based implementations similar to the ones in the http
      package of spring-web but using Reactive Streams.
      
      In turn HttpHandler now accepts the request and response types and
      returns Publisher<Void> that reflects the end of handling.
      
      The write method on the response also returns Publisher<Void> allowing
      deferred writing. At the moment however the underlying Servlet 3.1
      support only supports a single publisher after which the connection
      is closed.
      
      Only simple byte[] is supported for reading and writing.
      2cb32a0f
  19. 09 7月, 2015 1 次提交
  20. 07 7月, 2015 1 次提交