URL Cleanup - polishing
This commit is contained in:
@@ -102,42 +102,42 @@ public class HttpHeaders implements MultiValueMap<String, String>, Serializable
|
||||
public static final String ACCEPT_RANGES = "Accept-Ranges";
|
||||
/**
|
||||
* The CORS {@code Access-Control-Allow-Credentials} response header field name.
|
||||
* @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
* @see <a href="https://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
*/
|
||||
public static final String ACCESS_CONTROL_ALLOW_CREDENTIALS = "Access-Control-Allow-Credentials";
|
||||
/**
|
||||
* The CORS {@code Access-Control-Allow-Headers} response header field name.
|
||||
* @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
* @see <a href="https://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
*/
|
||||
public static final String ACCESS_CONTROL_ALLOW_HEADERS = "Access-Control-Allow-Headers";
|
||||
/**
|
||||
* The CORS {@code Access-Control-Allow-Methods} response header field name.
|
||||
* @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
* @see <a href="https://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
*/
|
||||
public static final String ACCESS_CONTROL_ALLOW_METHODS = "Access-Control-Allow-Methods";
|
||||
/**
|
||||
* The CORS {@code Access-Control-Allow-Origin} response header field name.
|
||||
* @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
* @see <a href="https://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
*/
|
||||
public static final String ACCESS_CONTROL_ALLOW_ORIGIN = "Access-Control-Allow-Origin";
|
||||
/**
|
||||
* The CORS {@code Access-Control-Expose-Headers} response header field name.
|
||||
* @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
* @see <a href="https://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
*/
|
||||
public static final String ACCESS_CONTROL_EXPOSE_HEADERS = "Access-Control-Expose-Headers";
|
||||
/**
|
||||
* The CORS {@code Access-Control-Max-Age} response header field name.
|
||||
* @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
* @see <a href="https://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
*/
|
||||
public static final String ACCESS_CONTROL_MAX_AGE = "Access-Control-Max-Age";
|
||||
/**
|
||||
* The CORS {@code Access-Control-Request-Headers} request header field name.
|
||||
* @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
* @see <a href="https://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
*/
|
||||
public static final String ACCESS_CONTROL_REQUEST_HEADERS = "Access-Control-Request-Headers";
|
||||
/**
|
||||
* The CORS {@code Access-Control-Request-Method} request header field name.
|
||||
* @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
* @see <a href="https://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
*/
|
||||
public static final String ACCESS_CONTROL_REQUEST_METHOD = "Access-Control-Request-Method";
|
||||
/**
|
||||
|
||||
@@ -45,7 +45,7 @@ import org.springframework.util.StringUtils;
|
||||
* @author Juergen Hoeller
|
||||
* @author Sam Brannen
|
||||
* @since 4.2
|
||||
* @see <a href="http://www.w3.org/TR/cors/">CORS spec</a>
|
||||
* @see <a href="https://www.w3.org/TR/cors/">CORS spec</a>
|
||||
*/
|
||||
public class CorsConfiguration {
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ import org.springframework.lang.Nullable;
|
||||
* @author Sebastien Deleuze
|
||||
* @author Rossen Stoyanchev
|
||||
* @since 4.2
|
||||
* @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
* @see <a href="https://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
* @see org.springframework.web.servlet.handler.AbstractHandlerMapping#setCorsProcessor
|
||||
*/
|
||||
public interface CorsProcessor {
|
||||
|
||||
@@ -23,7 +23,7 @@ import org.springframework.http.HttpMethod;
|
||||
|
||||
/**
|
||||
* Utility class for CORS request handling based on the
|
||||
* <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>.
|
||||
* <a href="https://www.w3.org/TR/cors/">CORS W3C recommendation</a>.
|
||||
*
|
||||
* @author Sebastien Deleuze
|
||||
* @since 4.2
|
||||
|
||||
@@ -40,7 +40,7 @@ import org.springframework.web.util.WebUtils;
|
||||
|
||||
/**
|
||||
* The default implementation of {@link CorsProcessor}, as defined by the
|
||||
* <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>.
|
||||
* <a href="https://www.w3.org/TR/cors/">CORS W3C recommendation</a>.
|
||||
*
|
||||
* <p>Note that when input {@link CorsConfiguration} is {@code null}, this
|
||||
* implementation does not reject simple or actual requests outright but simply
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.springframework.web.server.ServerWebExchange;
|
||||
* @author Sebastien Deleuze
|
||||
* @author Rossen Stoyanchev
|
||||
* @since 5.0
|
||||
* @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
* @see <a href="https://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
*/
|
||||
public interface CorsProcessor {
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ import org.springframework.web.util.UriComponentsBuilder;
|
||||
|
||||
/**
|
||||
* Utility class for CORS reactive request handling based on the
|
||||
* <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>.
|
||||
* <a href="https://www.w3.org/TR/cors/">CORS W3C recommendation</a>.
|
||||
*
|
||||
* @author Sebastien Deleuze
|
||||
* @since 5.0
|
||||
|
||||
@@ -39,7 +39,7 @@ import org.springframework.web.server.WebFilterChain;
|
||||
*
|
||||
* @author Sebastien Deleuze
|
||||
* @since 5.0
|
||||
* @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
* @see <a href="https://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
*/
|
||||
public class CorsWebFilter implements WebFilter {
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ import org.springframework.web.server.ServerWebExchange;
|
||||
|
||||
/**
|
||||
* The default implementation of {@link CorsProcessor},
|
||||
* as defined by the <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>.
|
||||
* as defined by the <a href="https://www.w3.org/TR/cors/">CORS W3C recommendation</a>.
|
||||
*
|
||||
* <p>Note that when input {@link CorsConfiguration} is {@code null}, this
|
||||
* implementation does not reject simple or actual requests outright but simply
|
||||
|
||||
@@ -48,7 +48,7 @@ import org.springframework.web.cors.UrlBasedCorsConfigurationSource;
|
||||
*
|
||||
* @author Sebastien Deleuze
|
||||
* @since 4.2
|
||||
* @see <a href="http://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
* @see <a href="https://www.w3.org/TR/cors/">CORS W3C recommendation</a>
|
||||
*/
|
||||
public class CorsFilter extends OncePerRequestFilter {
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ import org.springframework.util.Assert;
|
||||
* HTML 4.0 standard.
|
||||
*
|
||||
* <p>A complete description of the HTML 4.0 character set can be found
|
||||
* at http://www.w3.org/TR/html4/charset.html.
|
||||
* at https://www.w3.org/TR/html4/charset.html.
|
||||
*
|
||||
* @author Juergen Hoeller
|
||||
* @author Martin Kersten
|
||||
|
||||
@@ -24,7 +24,7 @@ import org.springframework.util.Assert;
|
||||
* character entity references.
|
||||
*
|
||||
* <p>Reference:
|
||||
* <a href="http://www.w3.org/TR/html4/charset.html">http://www.w3.org/TR/html4/charset.html</a>
|
||||
* <a href="https://www.w3.org/TR/html4/charset.html">https://www.w3.org/TR/html4/charset.html</a>
|
||||
*
|
||||
* <p>For a comprehensive set of String escaping utilities,
|
||||
* consider Apache Commons Lang and its StringEscapeUtils class.
|
||||
@@ -52,8 +52,8 @@ public abstract class HtmlUtils {
|
||||
* <p>Escapes all special characters to their corresponding
|
||||
* entity reference (e.g. {@code <}).
|
||||
* <p>Reference:
|
||||
* <a href="http://www.w3.org/TR/html4/sgml/entities.html">
|
||||
* http://www.w3.org/TR/html4/sgml/entities.html
|
||||
* <a href="https://www.w3.org/TR/html4/sgml/entities.html">
|
||||
* https://www.w3.org/TR/html4/sgml/entities.html
|
||||
* </a>
|
||||
* @param input the (unescaped) input string
|
||||
* @return the escaped string
|
||||
@@ -70,8 +70,8 @@ public abstract class HtmlUtils {
|
||||
* specified encoding. In other words, if a special character does
|
||||
* not have to be escaped for the given encoding, it may not be.
|
||||
* <p>Reference:
|
||||
* <a href="http://www.w3.org/TR/html4/sgml/entities.html">
|
||||
* http://www.w3.org/TR/html4/sgml/entities.html
|
||||
* <a href="https://www.w3.org/TR/html4/sgml/entities.html">
|
||||
* https://www.w3.org/TR/html4/sgml/entities.html
|
||||
* </a>
|
||||
* @param input the (unescaped) input string
|
||||
* @param encoding the name of a supported {@link java.nio.charset.Charset charset}
|
||||
@@ -101,8 +101,8 @@ public abstract class HtmlUtils {
|
||||
* <p>Escapes all special characters to their corresponding numeric
|
||||
* reference in decimal format (&#<i>Decimal</i>;).
|
||||
* <p>Reference:
|
||||
* <a href="http://www.w3.org/TR/html4/sgml/entities.html">
|
||||
* http://www.w3.org/TR/html4/sgml/entities.html
|
||||
* <a href="https://www.w3.org/TR/html4/sgml/entities.html">
|
||||
* https://www.w3.org/TR/html4/sgml/entities.html
|
||||
* </a>
|
||||
* @param input the (unescaped) input string
|
||||
* @return the escaped string
|
||||
@@ -119,8 +119,8 @@ public abstract class HtmlUtils {
|
||||
* specified encoding. In other words, if a special character does
|
||||
* not have to be escaped for the given encoding, it may not be.
|
||||
* <p>Reference:
|
||||
* <a href="http://www.w3.org/TR/html4/sgml/entities.html">
|
||||
* http://www.w3.org/TR/html4/sgml/entities.html
|
||||
* <a href="https://www.w3.org/TR/html4/sgml/entities.html">
|
||||
* https://www.w3.org/TR/html4/sgml/entities.html
|
||||
* </a>
|
||||
* @param input the (unescaped) input string
|
||||
* @param encoding the name of a supported {@link java.nio.charset.Charset charset}
|
||||
@@ -151,8 +151,8 @@ public abstract class HtmlUtils {
|
||||
* <p>Escapes all special characters to their corresponding numeric
|
||||
* reference in hex format (&#x<i>Hex</i>;).
|
||||
* <p>Reference:
|
||||
* <a href="http://www.w3.org/TR/html4/sgml/entities.html">
|
||||
* http://www.w3.org/TR/html4/sgml/entities.html
|
||||
* <a href="https://www.w3.org/TR/html4/sgml/entities.html">
|
||||
* https://www.w3.org/TR/html4/sgml/entities.html
|
||||
* </a>
|
||||
* @param input the (unescaped) input string
|
||||
* @return the escaped string
|
||||
@@ -169,8 +169,8 @@ public abstract class HtmlUtils {
|
||||
* specified encoding. In other words, if a special character does
|
||||
* not have to be escaped for the given encoding, it may not be.
|
||||
* <p>Reference:
|
||||
* <a href="http://www.w3.org/TR/html4/sgml/entities.html">
|
||||
* http://www.w3.org/TR/html4/sgml/entities.html
|
||||
* <a href="https://www.w3.org/TR/html4/sgml/entities.html">
|
||||
* https://www.w3.org/TR/html4/sgml/entities.html
|
||||
* </a>
|
||||
* @param input the (unescaped) input string
|
||||
* @param encoding the name of a supported {@link java.nio.charset.Charset charset}
|
||||
@@ -208,8 +208,8 @@ public abstract class HtmlUtils {
|
||||
* Gracefully handles malformed character references by copying original
|
||||
* characters as is when encountered.<p>
|
||||
* <p>Reference:
|
||||
* <a href="http://www.w3.org/TR/html4/sgml/entities.html">
|
||||
* http://www.w3.org/TR/html4/sgml/entities.html
|
||||
* <a href="https://www.w3.org/TR/html4/sgml/entities.html">
|
||||
* https://www.w3.org/TR/html4/sgml/entities.html
|
||||
* </a>
|
||||
* @param input the (escaped) input string
|
||||
* @return the unescaped string
|
||||
|
||||
Reference in New Issue
Block a user