Clarify WebContentInterceptor path mappings and efficiently match them

Issue: SPR-15096
This commit is contained in:
Juergen Hoeller
2017-01-17 21:12:54 +01:00
parent 4beeeb8118
commit 801b93a078
2 changed files with 27 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2002-2016 the original author or authors.
* Copyright 2002-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -30,14 +30,13 @@ import org.springframework.util.ClassUtils;
import org.springframework.util.StreamUtils;
/**
* Implementation of {@link HttpMessageConverter} that can read and write {@link Resource Resources}
* Implementation of {@link HttpMessageConverter} that can read/write {@link Resource Resources}
* and supports byte range requests.
*
* <p>By default, this converter can read all media types. The Java Activation Framework (JAF) -
* if available - is used to determine the {@code Content-Type} of written resources.
* If JAF is not available, {@code application/octet-stream} is used.
*
*
* @author Arjen Poutsma
* @author Juergen Hoeller
* @author Kazuki Shimizu