diff --git a/build.gradle b/build.gradle index 54b3e639c3..b92ff191b1 100644 --- a/build.gradle +++ b/build.gradle @@ -173,8 +173,8 @@ configure(allprojects) { project -> ext.javadocLinks = [ "http://docs.oracle.com/javase/8/docs/api/", "http://docs.oracle.com/javaee/7/api/", - "http://docs.oracle.com/cd/E13222_01/wls/docs90/javadocs/", // CommonJ - "http://pic.dhe.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.javadoc.doc/web/apidocs/", + "https://docs.oracle.com/cd/E13222_01/wls/docs90/javadocs/", // CommonJ + "https://www.ibm.com/support/knowledgecenter/SS7JFU_8.5.5/com.ibm.websphere.javadoc.doc/web/apidocs/", "http://glassfish.java.net/nonav/docs/v3/api/", "http://docs.jboss.org/jbossas/javadoc/4.0.5/connector/", "http://docs.jboss.org/jbossas/javadoc/7.1.2.Final/", diff --git a/spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java b/spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java index 04c71daa0c..efd6574ab9 100644 --- a/spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java +++ b/spring-web/src/main/java/org/springframework/web/client/DefaultResponseErrorHandler.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2018 the original author or authors. + * Copyright 2002-2019 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. @@ -72,14 +72,14 @@ public class DefaultResponseErrorHandler implements ResponseErrorHandler { /** * Template method called from {@link #hasError(ClientHttpResponse)}. *

The default implementation checks if the given status code is - * {@code HttpStatus.Series#CLIENT_ERROR CLIENT_ERROR} or - * {@code HttpStatus.Series#SERVER_ERROR SERVER_ERROR}. + * {@link org.springframework.http.HttpStatus.Series#CLIENT_ERROR CLIENT_ERROR} or + * {@link org.springframework.http.HttpStatus.Series#SERVER_ERROR SERVER_ERROR}. * Can be overridden in subclasses. * @param unknownStatusCode the HTTP status code as raw value * @return {@code true} if the response indicates an error; {@code false} otherwise * @since 4.3.21 - * @see HttpStatus.Series#CLIENT_ERROR - * @see HttpStatus.Series#SERVER_ERROR + * @see org.springframework.http.HttpStatus.Series#CLIENT_ERROR + * @see org.springframework.http.HttpStatus.Series#SERVER_ERROR */ protected boolean hasError(int unknownStatusCode) { HttpStatus.Series series = HttpStatus.Series.resolve(unknownStatusCode); @@ -105,9 +105,10 @@ public class DefaultResponseErrorHandler implements ResponseErrorHandler { /** * Handle the error in the given response with the given resolved status code. *

The default implementation throws an {@link HttpClientErrorException} - * if the status code is {@link HttpStatus.Series#CLIENT_ERROR}, an - * {@link HttpServerErrorException} if it is {@link HttpStatus.Series#SERVER_ERROR}, - * and an {@link UnknownHttpStatusCodeException} in other cases. + * if the status code is {@link org.springframework.http.HttpStatus.Series#CLIENT_ERROR + * CLIENT_ERROR}, an {@link HttpServerErrorException} if it is + * {@link org.springframework.http.HttpStatus.Series#SERVER_ERROR SERVER_ERROR}, + * or an {@link UnknownHttpStatusCodeException} in other cases. * @since 5.0 * @see HttpClientErrorException#create * @see HttpServerErrorException#create