Polishing
This commit is contained in:
committed by
Juergen Hoeller
parent
229214a9b0
commit
bed4d684e6
@@ -102,7 +102,7 @@ public class ParameterizableViewController extends AbstractController {
|
|||||||
* Configure the HTTP status code that this controller should set on the
|
* Configure the HTTP status code that this controller should set on the
|
||||||
* response.
|
* response.
|
||||||
* <p>When a "redirect:" prefixed view name is configured, there is no need
|
* <p>When a "redirect:" prefixed view name is configured, there is no need
|
||||||
* to set this property since RedirectView will do that. However this property
|
* to set this property since RedirectView will do that. However, this property
|
||||||
* may still be used to override the 3xx status code of {@code RedirectView}.
|
* may still be used to override the 3xx status code of {@code RedirectView}.
|
||||||
* For full control over redirecting provide a {@code RedirectView} instance.
|
* For full control over redirecting provide a {@code RedirectView} instance.
|
||||||
* <p>If the status code is 204 and no view is configured, the request is
|
* <p>If the status code is 204 and no view is configured, the request is
|
||||||
|
|||||||
@@ -79,7 +79,7 @@ public class EncodedResourceResolver extends AbstractResourceResolver {
|
|||||||
* given request, and that has a file present with the associated extension,
|
* given request, and that has a file present with the associated extension,
|
||||||
* is used.
|
* is used.
|
||||||
* <p><strong>Note:</strong> Each coding must be associated with a file
|
* <p><strong>Note:</strong> Each coding must be associated with a file
|
||||||
* extension via {@link #registerExtension} or {@link #setExtensions}. Also
|
* extension via {@link #registerExtension} or {@link #setExtensions}. Also,
|
||||||
* customizations to the list of codings here should be matched by
|
* customizations to the list of codings here should be matched by
|
||||||
* customizations to the same list in {@link CachingResourceResolver} to
|
* customizations to the same list in {@link CachingResourceResolver} to
|
||||||
* ensure encoded variants of a resource are cached under separate keys.
|
* ensure encoded variants of a resource are cached under separate keys.
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
|
|||||||
* {@code /META-INF/public-web-resources/} directory, with resources in the
|
* {@code /META-INF/public-web-resources/} directory, with resources in the
|
||||||
* web application root taking precedence.
|
* web application root taking precedence.
|
||||||
* <p>For {@link org.springframework.core.io.UrlResource URL-based resources}
|
* <p>For {@link org.springframework.core.io.UrlResource URL-based resources}
|
||||||
* (e.g. files, HTTP URLs, etc) this method supports a special prefix to
|
* (e.g. files, HTTP URLs, etc.) this method supports a special prefix to
|
||||||
* indicate the charset associated with the URL so that relative paths
|
* indicate the charset associated with the URL so that relative paths
|
||||||
* appended to it can be encoded correctly, for example
|
* appended to it can be encoded correctly, for example
|
||||||
* {@code "[charset=Windows-31J]https://example.org/path"}.
|
* {@code "[charset=Windows-31J]https://example.org/path"}.
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ public class ResourceUrlProvider implements ApplicationListener<ContextRefreshed
|
|||||||
/**
|
/**
|
||||||
* Manually configure the resource mappings.
|
* Manually configure the resource mappings.
|
||||||
* <p><strong>Note:</strong> by default resource mappings are auto-detected
|
* <p><strong>Note:</strong> by default resource mappings are auto-detected
|
||||||
* from the Spring {@code ApplicationContext}. However if this property is
|
* from the Spring {@code ApplicationContext}. However, if this property is
|
||||||
* used, the auto-detection is turned off.
|
* used, the auto-detection is turned off.
|
||||||
*/
|
*/
|
||||||
public void setHandlerMap(@Nullable Map<String, ResourceHttpRequestHandler> handlerMap) {
|
public void setHandlerMap(@Nullable Map<String, ResourceHttpRequestHandler> handlerMap) {
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ import org.springframework.lang.Nullable;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Abstract base class for URL-based views. Provides a consistent way of
|
* Abstract base class for URL-based views. Provides a consistent way of
|
||||||
* holding the URL that a View wraps, in the form of a "url" bean property.
|
* holding the URL that a View wraps, in the form of an "url" bean property.
|
||||||
*
|
*
|
||||||
* @author Juergen Hoeller
|
* @author Juergen Hoeller
|
||||||
* @since 13.12.2003
|
* @since 13.12.2003
|
||||||
|
|||||||
@@ -50,9 +50,9 @@ import org.springframework.web.servlet.support.RequestContext;
|
|||||||
* resource (for example: "myView" → "/WEB-INF/jsp/myView.jsp"), using
|
* resource (for example: "myView" → "/WEB-INF/jsp/myView.jsp"), using
|
||||||
* this view class to enable explicit JSTL support.
|
* this view class to enable explicit JSTL support.
|
||||||
*
|
*
|
||||||
* <p>The specified MessageSource loads messages from "messages.properties" etc
|
* <p>The specified MessageSource loads messages from "messages.properties" etc.
|
||||||
* files in the class path. This will automatically be exposed to views as
|
* files in the class path. This will automatically be exposed to views as
|
||||||
* JSTL localization context, which the JSTL fmt tags (message etc) will use.
|
* JSTL localization context, which the JSTL fmt tags (message etc.) will use.
|
||||||
* Consider using Spring's ReloadableResourceBundleMessageSource instead of
|
* Consider using Spring's ReloadableResourceBundleMessageSource instead of
|
||||||
* the standard ResourceBundleMessageSource for more sophistication.
|
* the standard ResourceBundleMessageSource for more sophistication.
|
||||||
* Of course, any other Spring components can share the same MessageSource.
|
* Of course, any other Spring components can share the same MessageSource.
|
||||||
|
|||||||
@@ -554,7 +554,7 @@ public class RedirectView extends AbstractUrlBasedView implements SmartView {
|
|||||||
/**
|
/**
|
||||||
* Determine whether the given model element value is eligible for exposure.
|
* Determine whether the given model element value is eligible for exposure.
|
||||||
* <p>The default implementation considers primitives, strings, numbers, dates,
|
* <p>The default implementation considers primitives, strings, numbers, dates,
|
||||||
* URIs, URLs etc as eligible, according to {@link BeanUtils#isSimpleValueType}.
|
* URIs, URLs etc. as eligible, according to {@link BeanUtils#isSimpleValueType}.
|
||||||
* This can be overridden in subclasses.
|
* This can be overridden in subclasses.
|
||||||
* @param value the model element value
|
* @param value the model element value
|
||||||
* @return whether the element value is eligible
|
* @return whether the element value is eligible
|
||||||
|
|||||||
Reference in New Issue
Block a user