1. 04 5月, 2017 1 次提交
  2. 03 5月, 2017 1 次提交
  3. 02 5月, 2017 1 次提交
  4. 28 4月, 2017 2 次提交
  5. 13 4月, 2017 1 次提交
  6. 17 3月, 2017 1 次提交
  7. 16 3月, 2017 1 次提交
  8. 14 1月, 2017 1 次提交
    • R
      Refactor reactive mock request and response support · ba3cc535
      Rossen Stoyanchev 提交于
      MockServerHttpRequest and MockServerHttpResponse now extend the same
      abstract base classes that server-specific implementations do and
      therefore approximate their behavior more closely.
      
      As an immediate consequence MockServerHttpRequest is read-only after
      it is created. Instead it now exposes static builder methods similar
      to those found in RequestEntity. This enforces more strictness as well
      as recycling of requests in tests and provides nicer builder methods.
      
      To simplify tests DefaultServerWebExchange now offers a constructor
      with just a request and response, and automatically creating a
      DefaultWebSessionManager.
      
      The spring-test module now also contains client-side reactive mock
      request and response implementations. The mock client request extends
      the same AbstractClientHttpRequest as client-specific implementations
      do. There is no abstract base class for client responses.
      
      Issue: SPR-14590
      ba3cc535
  9. 16 12月, 2016 1 次提交
    • R
      Support for "request parameters" · 61194154
      Rossen Stoyanchev 提交于
      ServerWebExchange now provides access to "requestParams" as a
      MulitValueMap with query parameters and form data combined.
      
      The combined map is then used for the params condition of
      @RequestMapping purposes () and also for @RequestParam arguments.
      
      Issue: SPR-15000
      61194154
  10. 02 11月, 2016 1 次提交
    • R
      Improve reactive support for access to Principal · 99cacaa7
      Rossen Stoyanchev 提交于
      The method to access the Principal from the ServerWebExchange is now
      a Mono<Principal> (rather than Optional<Principal>).
      
      There is also support for Principal as a controller method argument.
      
      Issue: SPR-14680, SPR-14865
      99cacaa7
  11. 29 10月, 2016 1 次提交
    • R
      ServerWebExchange provides access to form data · 00a35897
      Rossen Stoyanchev 提交于
      The ServerWebExchange now has a getFormData() method that delegates to
      FormHttpMessageReader for the parsing and then caches the result so
      it may be used multiples times during request processing.
      
      Issue: SPR-14541
      00a35897
  12. 18 10月, 2016 1 次提交
    • R
      Add getPrincipal to ServerWebExchange · ec1eb142
      Rossen Stoyanchev 提交于
      ServerWebExchange now has a getPrincipal method and along with that a
      ServerWebExchangeDecorator that can be used to wrap the exchange in
      order to return the authenticated user.
      
      Issue: SPR-14680
      ec1eb142
  13. 02 9月, 2016 2 次提交
  14. 31 8月, 2016 1 次提交
  15. 15 7月, 2016 2 次提交
  16. 01 7月, 2016 1 次提交
    • R
      Simplify initialization of WebSession Mono · 2f2546c8
      Rossen Stoyanchev 提交于
      The DefaultWebSessionManager now uses Mono.defer to protect the call
      to getSession from parsing session cookies immediately. This allows
      pre-initializing the Mono<WebSession> upfront vs using a lock.
      2f2546c8
  17. 03 5月, 2016 1 次提交
  18. 20 4月, 2016 1 次提交
  19. 29 1月, 2016 2 次提交
  20. 28 1月, 2016 3 次提交
    • 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
  21. 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
  22. 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
  23. 09 12月, 2015 1 次提交
  24. 03 12月, 2015 1 次提交
  25. 25 11月, 2015 1 次提交
  26. 21 11月, 2015 1 次提交
  27. 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
  28. 29 10月, 2015 2 次提交
  29. 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
  30. 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
  31. 09 7月, 2015 1 次提交