1. 04 5月, 2016 8 次提交
  2. 03 5月, 2016 4 次提交
    • B
      Add convenient getters for force*Encoding attributes · 05b29a4a
      Brian Clozel 提交于
      Issue: SPR-14240
      05b29a4a
    • B
      Selectively force encoding in CharacterEncodingFilter · 76ee4684
      Brian Clozel 提交于
      Prior to this commit, setting the `forceEncoding` option would force
      encoding on both requests and responses.
      
      This commit adds two new setters and a new constructor to differentiate
      both options: forcing the encoding on the request and/or on the
      response.
      
      You can now define this filter programmatically using those options or
      update your servlet XML configuration like:
      
      ```
      <filter>
        <filter-name>characterEncodingFilter</filter-name>
        <filter-class>o.sf.web.filter.CharacterEncodingFilter</filter-class>
        <init-param>
           <param-name>encoding</param-name>
           <param-value>UTF-8</param-value>
        </init-param>
        <init-param>
          <param-name>forceRequestEncoding</param-name>
          <param-value>true</param-value>
        </init-param>
        <init-param>
          <param-name>forceResponseEncoding</param-name>
          <param-value>false</param-value>
        </init-param>
      </filter>
      
      ```
      
      Issue: SPR-14240
      76ee4684
    • J
      1be544f8
    • B
      Refactor HTTP Range support with ResourceRegion · 5ac31fb3
      Brian Clozel 提交于
      Prior to this commit, the `ResourceHttpMessageConverter` would support
      all HTTP Range requests and `MethodProcessors` would "wrap" controller
      handler return values with a `HttpRangeResource` to support that use
      case in Controllers.
      
      This commit refactors that support in several ways:
      * a new ResourceRegion class has been introduced
      * a new, separate, ResourceRegionHttpMessageConverter handles the HTTP
      range use cases when serving static resources with the
      ResourceHttpRequestHandler
      * the support of HTTP range requests on Controller handlers has been
      removed until a better solution is found
      
      Issue: SPR-14221, SPR-13834
      5ac31fb3
  3. 02 5月, 2016 6 次提交
  4. 29 4月, 2016 7 次提交
  5. 28 4月, 2016 8 次提交
  6. 27 4月, 2016 7 次提交