parent
6985fa8057
commit
5b1a84e395
|
@ -150,8 +150,8 @@ public class RouterFunctionMapping extends AbstractHandlerMapping implements Ini
|
|||
}
|
||||
|
||||
/**
|
||||
* Detect an all {@linkplain RouterFunction router functions} in the
|
||||
* current application context.
|
||||
* Detect all {@linkplain RouterFunction router functions} in the current
|
||||
* application context.
|
||||
*/
|
||||
private void initRouterFunctions() {
|
||||
List<RouterFunction<?>> routerFunctions = obtainApplicationContext()
|
||||
|
|
|
@ -297,7 +297,7 @@ public abstract class RequestMappingInfoHandlerMapping extends AbstractHandlerMe
|
|||
}
|
||||
|
||||
/**
|
||||
* Whether there is any partial matches.
|
||||
* Whether there are any partial matches.
|
||||
*/
|
||||
public boolean isEmpty() {
|
||||
return this.partialMatches.isEmpty();
|
||||
|
|
|
@ -204,9 +204,9 @@ public class PathResourceResolver extends AbstractResourceResolver {
|
|||
|
||||
/**
|
||||
* Perform additional checks on a resolved resource beyond checking whether the
|
||||
* resources exists and is readable. The default implementation also verifies
|
||||
* resource exists and is readable. The default implementation also verifies
|
||||
* the resource is either under the location relative to which it was found or
|
||||
* is under one of the {@link #setAllowedLocations allowed locations}.
|
||||
* is under one of the {@linkplain #setAllowedLocations allowed locations}.
|
||||
* @param resource the resource to check
|
||||
* @param location the location relative to which the resource was found
|
||||
* @return "true" if resource is in a valid location, "false" otherwise.
|
||||
|
|
|
@ -525,7 +525,7 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
|
|||
/**
|
||||
* Initialize the strategy to use to determine the media type for a resource.
|
||||
* @deprecated as of 5.2.4 this method returns {@code null}, and if a
|
||||
* subclass returns an actual instance,the instance is used only as a
|
||||
* subclass returns an actual instance, the instance is used only as a
|
||||
* source of media type mappings, if it contains any. Please, use
|
||||
* {@link #setMediaTypes(Map)} instead, or if you need to change behavior,
|
||||
* you can override {@link #getMediaType(HttpServletRequest, Resource)}.
|
||||
|
|
|
@ -637,11 +637,11 @@ public class RedirectView extends AbstractUrlBasedView implements SmartView {
|
|||
/**
|
||||
* Whether the given targetUrl has a host that is a "foreign" system in which
|
||||
* case {@link HttpServletResponse#encodeRedirectURL} will not be applied.
|
||||
* This method returns {@code true} if the {@link #setHosts(String[])}
|
||||
* <p>This method returns {@code true} if the {@link #setHosts(String[])}
|
||||
* property is configured and the target URL has a host that does not match.
|
||||
* @param targetUrl the target redirect URL
|
||||
* @return {@code true} the target URL has a remote host, {@code false} if
|
||||
* the URL does not have a host or the "host" property is not configured.
|
||||
* @return {@code true} if the target URL has a remote host, {@code false} if
|
||||
* the URL does not have a host or the "host" property is not configured
|
||||
* @since 4.3
|
||||
*/
|
||||
protected boolean isRemoteHost(String targetUrl) {
|
||||
|
|
|
@ -100,7 +100,7 @@ public abstract class AbstractPdfStamperView extends AbstractUrlBasedView {
|
|||
*
|
||||
* // set some values on the form
|
||||
* form.setField("field1", "value1");
|
||||
* form.setField("field2", "Value2");
|
||||
* form.setField("field2", "value2");
|
||||
*
|
||||
* // set the disposition and filename
|
||||
* response.setHeader("Content-disposition", "attachment; FILENAME=someName.pdf");</pre>
|
||||
|
|
Loading…
Reference in New Issue