This commit is contained in:
Stephane Nicoll
2015-11-05 10:18:34 +01:00
parent c94cb1f3d1
commit 6dbdd575a5

View File

@@ -62,15 +62,15 @@ public class WebMvcProperties {
*/
private boolean throwExceptionIfNoHandlerFound = false;
private final Async async = new Async();
private final View view = new View();
/**
* Maps file extensions to media types for content negotiation, e.g. yml->text/yaml.
*/
private Map<String, MediaType> mediaTypes = new LinkedHashMap<String, MediaType>();
private final Async async = new Async();
private final View view = new View();
public DefaultMessageCodesResolver.Format getMessageCodesResolverFormat() {
return this.messageCodesResolverFormat;
}
@@ -113,14 +113,6 @@ public class WebMvcProperties {
this.throwExceptionIfNoHandlerFound = throwExceptionIfNoHandlerFound;
}
public Async getAsync() {
return this.async;
}
public View getView() {
return this.view;
}
public Map<String, MediaType> getMediaTypes() {
return this.mediaTypes;
}
@@ -129,6 +121,14 @@ public class WebMvcProperties {
this.mediaTypes = mediaTypes;
}
public Async getAsync() {
return this.async;
}
public View getView() {
return this.view;
}
public static class Async {
/**