提交 7d498ba6 编写于 作者: S Sam Brannen

Fix Checkstyle error and polish Javadoc for ResourceHttpMessageReader

上级 4a397f10
......@@ -5,7 +5,7 @@
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
......@@ -13,6 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.http.codec;
import java.util.Map;
......@@ -26,16 +27,15 @@ import org.springframework.http.server.reactive.ServerHttpResponse;
import org.springframework.util.StringUtils;
/**
* Simple around around {@link ResourceDecoder} that extracts the filename from
* the "Content-Disposition" header, if available, and passes it as the hint
* {@link ResourceDecoder#FILENAME_HINT}.
* {@code HttpMessageReader} that wraps and delegates to a {@link ResourceDecoder}
* that extracts the filename from the {@code "Content-Disposition"} header, if
* available, and passes it as the {@link ResourceDecoder#FILENAME_HINT}.
*
* @author Rossen Stoyanchev
* @since 5.2
*/
public class ResourceHttpMessageReader extends DecoderHttpMessageReader<Resource> {
public ResourceHttpMessageReader() {
super(new ResourceDecoder());
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册