Use ContentNegotiationManager for static resources
The ResourceHttpRequestHandler now relies on the conifgured
ContentNegotiationManager to determine the content type for resource
requests rather than implementing that internally.
First we check against the matched resource based on the resource file
extension. Then we expand the check against the request with any
configured content negotiation strategy.
Issue: SPR-13658
@ -96,6 +96,22 @@ public class ContentNegotiationManager implements ContentNegotiationStrategy,
@@ -96,6 +96,22 @@ public class ContentNegotiationManager implements ContentNegotiationStrategy,
@ -82,4 +83,26 @@ public class ServletPathExtensionContentNegotiationStrategy
@@ -82,4 +83,26 @@ public class ServletPathExtensionContentNegotiationStrategy
@ -122,12 +121,9 @@ public abstract class AbstractMessageConverterMethodProcessor extends AbstractMe
@@ -122,12 +121,9 @@ public abstract class AbstractMessageConverterMethodProcessor extends AbstractMe
@ -103,6 +104,8 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
@@ -103,6 +104,8 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
@ -162,6 +165,28 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
@@ -162,6 +165,28 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
@ -186,6 +211,10 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
@@ -186,6 +211,10 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
@ -208,6 +237,17 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
@@ -208,6 +237,17 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
@ -250,8 +290,8 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
@@ -250,8 +290,8 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
logger.trace("Determined media type '"+mediaType+"' for "+resource);
@ -391,25 +431,56 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
@@ -391,25 +431,56 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
@ -575,48 +646,4 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
@@ -575,48 +646,4 @@ public class ResourceHttpRequestHandler extends WebContentGenerator