Polishing
This commit is contained in:
parent
62d1b4b6e8
commit
c622f4c487
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2013 the original author or authors.
|
||||
* Copyright 2002-2015 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.
|
||||
|
@ -37,6 +37,9 @@ import org.springframework.util.StringValueResolver;
|
|||
* as {@code DefaultConversionService} exposes its own
|
||||
* {@link DefaultConversionService#addDefaultConverters addDefaultConverters} method.
|
||||
*
|
||||
* <p>Automatically registers formatters for JSR-354 Money & Currency, JSR-310 Date-Time
|
||||
* and/or Joda-Time, depending on the presence of the corresponding API on the classpath.
|
||||
*
|
||||
* @author Chris Beams
|
||||
* @author Juergen Hoeller
|
||||
* @since 3.1
|
||||
|
@ -92,9 +95,10 @@ public class DefaultFormattingConversionService extends FormattingConversionServ
|
|||
|
||||
|
||||
/**
|
||||
* Add formatters appropriate for most environments, including number formatters and a Joda-Time
|
||||
* date formatter if Joda-Time is present on the classpath.
|
||||
* @param formatterRegistry the service to register default formatters against
|
||||
* Add formatters appropriate for most environments: including number formatters,
|
||||
* JSR-354 Money & Currency formatters, JSR-310 Date-Time and/or Joda-Time formatters,
|
||||
* depending on the presence of the corresponding API on the classpath.
|
||||
* @param formatterRegistry the service to register default formatters with
|
||||
*/
|
||||
public static void addDefaultFormatters(FormatterRegistry formatterRegistry) {
|
||||
// Default handling of number values
|
||||
|
|
|
@ -23,7 +23,6 @@ import java.util.Enumeration;
|
|||
import java.util.Map;
|
||||
import java.util.StringTokenizer;
|
||||
import java.util.TreeMap;
|
||||
|
||||
import javax.servlet.ServletContext;
|
||||
import javax.servlet.ServletRequest;
|
||||
import javax.servlet.ServletRequestWrapper;
|
||||
|
@ -752,7 +751,7 @@ public abstract class WebUtils {
|
|||
* keys {@code "q1"} and {@code "q2"} with values {@code ["a","b"]} and
|
||||
* {@code ["a","b","c"]} respectively.
|
||||
* @param matrixVariables the unparsed matrix variables string
|
||||
* @return a map with matrix variable names and values, never {@code null}
|
||||
* @return a map with matrix variable names and values (never {@code null})
|
||||
* @since 3.2
|
||||
*/
|
||||
public static MultiValueMap<String, String> parseMatrixVariables(String matrixVariables) {
|
||||
|
@ -782,7 +781,7 @@ public abstract class WebUtils {
|
|||
* Check the given request origin against a list of allowed origins.
|
||||
* A list containing "*" means that all origins are allowed.
|
||||
* An empty list means only same origin is allowed.
|
||||
* @return true if the request origin is valid, false otherwise
|
||||
* @return {@code true} if the request origin is valid, {@code false} otherwise
|
||||
* @since 4.1.5
|
||||
* @see <a href="https://tools.ietf.org/html/rfc6454">RFC 6454: The Web Origin Concept</a>
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue