Polish "Use HTTPS for external links wherever possible"

See gh-16316
1.3.x
Andy Wilkinson 6 years ago
parent e401d02ced
commit 9be96c49e2

@ -60,7 +60,7 @@ HAL browser is not active).
If https://projects.spring.io/spring-hateoas[Spring HATEOAS] is enabled (i.e. if it is If https://projects.spring.io/spring-hateoas[Spring HATEOAS] is enabled (i.e. if it is
on the classpath by default) then the Actuator endpoint responses are enhanced with on the classpath by default) then the Actuator endpoint responses are enhanced with
hypermedia in the form of "links". The default media type for responses is hypermedia in the form of "links". The default media type for responses is
http://stateless.co/hal_specification.html[HAL], resulting in each resource having an https://github.com/mikekelly/hal_specification[HAL], resulting in each resource having an
extra property called "_links". You can change the media type to another one supported by extra property called "_links". You can change the media type to another one supported by
Spring HATEOAS by providing your own `@EnableHypermedia` annotation and custom providers Spring HATEOAS by providing your own `@EnableHypermedia` annotation and custom providers
as necessary. as necessary.

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2015 the original author or authors. * Copyright 2012-2019 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -42,7 +42,7 @@ import org.springframework.transaction.jta.JtaTransactionManager;
import org.springframework.util.StringUtils; import org.springframework.util.StringUtils;
/** /**
* JTA Configuration for <A href="https://docs.codehaus.org/display/BTM/Home">Bitronix</A>. * JTA Configuration for <A href="https://github.com/bitronix/btm">Bitronix</A>.
* *
* @author Josh Long * @author Josh Long
* @author Phillip Webb * @author Phillip Webb

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2013 the original author or authors. * Copyright 2012-2019 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -39,7 +39,7 @@ import static org.junit.Assert.assertThat;
*/ */
public final class DetailedProgressReporterTests { public final class DetailedProgressReporterTests {
private static final String REPOSITORY = "http://my.repository.com/"; private static final String REPOSITORY = "https://repo.example.com/";
private static final String ARTIFACT = "org/alpha/bravo/charlie/1.2.3/charlie-1.2.3.jar"; private static final String ARTIFACT = "org/alpha/bravo/charlie/1.2.3/charlie-1.2.3.jar";

@ -279,6 +279,6 @@ alternatives could be considered:
* https://maven.apache.org/plugins/maven-shade-plugin/[Maven Shade Plugin] * https://maven.apache.org/plugins/maven-shade-plugin/[Maven Shade Plugin]
* http://www.jdotsoft.com/JarClassLoader.php[JarClassLoader] * http://www.jdotsoft.com/JarClassLoader.php[JarClassLoader]
* http://one-jar.sourceforge.net[OneJar] * https://sourceforge.net/projects/one-jar/[OneJar]

@ -340,8 +340,8 @@ and then configure and start the necessary resources on AWS:
Creating security group boxfuse-sg_axelfontaine/myapp:1.0 ... Creating security group boxfuse-sg_axelfontaine/myapp:1.0 ...
Launching t2.micro instance of axelfontaine/myapp:1.0 (ami-d23f38cf) in eu-central-1 ... Launching t2.micro instance of axelfontaine/myapp:1.0 (ami-d23f38cf) in eu-central-1 ...
Instance launched in 00:30.306s -> i-92ef9f53 Instance launched in 00:30.306s -> i-92ef9f53
Waiting for AWS to boot Instance i-92ef9f53 and Payload to start at http://52.28.235.61/ ... Waiting for AWS to boot Instance i-92ef9f53 and Payload to start at https://52.28.235.61/ ...
Payload started in 00:29.266s -> http://52.28.235.61/ Payload started in 00:29.266s -> https://52.28.235.61/
Remapping Elastic IP 52.28.233.167 to i-92ef9f53 ... Remapping Elastic IP 52.28.233.167 to i-92ef9f53 ...
Waiting 15s for AWS to complete Elastic IP Zero Downtime transition ... Waiting 15s for AWS to complete Elastic IP Zero Downtime transition ...
Deployment completed successfully. axelfontaine/myapp:1.0 is up and running at https://myapp-axelfontaine.boxfuse.io/ Deployment completed successfully. axelfontaine/myapp:1.0 is up and running at https://myapp-axelfontaine.boxfuse.io/

@ -262,8 +262,8 @@ endif::release[]
[[getting-started-installing-the-cli]] [[getting-started-installing-the-cli]]
=== Installing the Spring Boot CLI === Installing the Spring Boot CLI
The Spring Boot CLI is a command line tool that can be used if you want to quickly The Spring Boot CLI is a command line tool that can be used if you want to quickly
prototype with Spring. It allows you to run https://groovy.codehaus.org/[Groovy] scripts, prototype with Spring. It allows you to run http://groovy-lang.org[Groovy] scripts, which
which means that you have a familiar Java-like syntax, without so much boilerplate code. means that you have a familiar Java-like syntax, without so much boilerplate code.
You don't need to use the CLI to work with Spring Boot but it's definitely the quickest You don't need to use the CLI to work with Spring Boot but it's definitely the quickest
way to get a Spring application off the ground. way to get a Spring application off the ground.
@ -370,7 +370,7 @@ install the Spring Boot CLI is:
[[getting-started-cli-command-line-completion]] [[getting-started-cli-command-line-completion]]
==== Command-line completion ==== Command-line completion
Spring Boot CLI ships with scripts that provide command completion for Spring Boot CLI ships with scripts that provide command completion for
https://en.wikipedia.org/wiki/Bash_%2528Unix_shell%2529[BASH] and https://en.wikipedia.org/wiki/Bash_%28Unix_shell%29[BASH] and
https://en.wikipedia.org/wiki/Zsh[zsh] shells. You can `source` the script (also named https://en.wikipedia.org/wiki/Zsh[zsh] shells. You can `source` the script (also named
`spring`) in any shell, or put it in your personal or system-wide bash completion `spring`) in any shell, or put it in your personal or system-wide bash completion
initialization. On a Debian system the system-wide scripts are in `/shell-completion/bash` initialization. On a Debian system the system-wide scripts are in `/shell-completion/bash`

@ -1191,8 +1191,8 @@ recommendations.
[[production-ready-metric-writers-export-to-open-tsdb]] [[production-ready-metric-writers-export-to-open-tsdb]]
==== Example: Export to Open TSDB ==== Example: Export to Open TSDB
If you provide a `@Bean` of type `OpenTsdbGaugeWriter` and mark it If you provide a `@Bean` of type `OpenTsdbGaugeWriter` and mark it
`@ExportMetricWriter` metrics are exported to http://opentsdb.net/[Open TSDB] for `@ExportMetricWriter` metrics are exported to https://github.com/OpenTSDB/opentsdb[Open
aggregation. The `OpenTsdbGaugeWriter` has a `url` property that you need to set TSDB] for aggregation. The `OpenTsdbGaugeWriter` has a `url` property that you need to set
to the Open TSDB "`/put`" endpoint, e.g. `http://localhost:4242/api/put`). It also has a to the Open TSDB "`/put`" endpoint, e.g. `http://localhost:4242/api/put`). It also has a
`namingStrategy` that you can customize or configure to make the metrics match the data `namingStrategy` that you can customize or configure to make the metrics match the data
structure you need on the server. By default it just passes through the metric name as an structure you need on the server. By default it just passes through the metric name as an

@ -558,10 +558,10 @@ For example, the following YAML document:
---- ----
environments: environments:
dev: dev:
url: https://dev.bar.com url: http://dev.example.com
name: Developer Setup name: Developer Setup
prod: prod:
url: https://foo.bar.com url: http://another.example.com
name: My Cool App name: My Cool App
---- ----
@ -569,9 +569,9 @@ Would be transformed into these properties:
[source,properties,indent=0] [source,properties,indent=0]
---- ----
environments.dev.url=https://dev.bar.com environments.dev.url=http://dev.example.com
environments.dev.name=Developer Setup environments.dev.name=Developer Setup
environments.prod.url=https://foo.bar.com environments.prod.url=http://another.example.com
environments.prod.name=My Cool App environments.prod.name=My Cool App
---- ----
@ -582,16 +582,16 @@ for example this YAML:
---- ----
my: my:
servers: servers:
- dev.bar.com - dev.example.com
- foo.bar.com - another.example.com
---- ----
Would be transformed into these properties: Would be transformed into these properties:
[source,properties,indent=0] [source,properties,indent=0]
---- ----
my.servers[0]=dev.bar.com my.servers[0]=dev.example.com
my.servers[1]=foo.bar.com my.servers[1]=another.example.com
---- ----
To bind to properties like that using the Spring `DataBinder` utilities (which is what To bind to properties like that using the Spring `DataBinder` utilities (which is what

@ -45,7 +45,7 @@ public class WebServiceConfig extends WsConfigurerAdapter {
DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition(); DefaultWsdl11Definition wsdl11Definition = new DefaultWsdl11Definition();
wsdl11Definition.setPortTypeName("HumanResource"); wsdl11Definition.setPortTypeName("HumanResource");
wsdl11Definition.setLocationUri("/holidayService/"); wsdl11Definition.setLocationUri("/holidayService/");
wsdl11Definition.setTargetNamespace("http://mycompany.com/hr/definitions"); wsdl11Definition.setTargetNamespace("https://company.example.com/hr/definitions");
wsdl11Definition.setSchema(countriesSchema); wsdl11Definition.setSchema(countriesSchema);
return wsdl11Definition; return wsdl11Definition;
} }

@ -38,7 +38,7 @@ import org.springframework.ws.server.endpoint.annotation.RequestPayload;
@Endpoint @Endpoint
public class HolidayEndpoint { public class HolidayEndpoint {
private static final String NAMESPACE_URI = "http://mycompany.com/hr/schemas"; private static final String NAMESPACE_URI = "https://company.example.com/hr/schemas";
private XPathExpression<Element> startDateExpression; private XPathExpression<Element> startDateExpression;
private XPathExpression<Element> endDateExpression; private XPathExpression<Element> endDateExpression;

@ -1,7 +1,7 @@
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:hr="http://mycompany.com/hr/schemas" xmlns:hr="https://company.example.com/hr/schemas"
elementFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://mycompany.com/hr/schemas"> targetNamespace="https://company.example.com/hr/schemas">
<xs:element name="HolidayRequest"> <xs:element name="HolidayRequest">
<xs:complexType> <xs:complexType>
<xs:all> <xs:all>

@ -56,7 +56,7 @@ public class SampleWsApplicationTests {
@Test @Test
public void testSendingHolidayRequest() { public void testSendingHolidayRequest() {
final String request = "<hr:HolidayRequest xmlns:hr=\"http://mycompany.com/hr/schemas\">" final String request = "<hr:HolidayRequest xmlns:hr=\"https://company.example.com/hr/schemas\">"
+ " <hr:Holiday>" + " <hr:StartDate>2013-10-20</hr:StartDate>" + " <hr:Holiday>" + " <hr:StartDate>2013-10-20</hr:StartDate>"
+ " <hr:EndDate>2013-11-22</hr:EndDate>" + " </hr:Holiday>" + " <hr:EndDate>2013-11-22</hr:EndDate>" + " </hr:Holiday>"
+ " <hr:Employee>" + " <hr:Number>1</hr:Number>" + " <hr:Employee>" + " <hr:Number>1</hr:Number>"

@ -25,10 +25,10 @@ do as they were designed before this was clarified.
| Central Authentication Service (CAS) client | Central Authentication Service (CAS) client
| https://github.com/Unicon/cas-client-autoconfig-support | https://github.com/Unicon/cas-client-autoconfig-support
| http://modelmapper.org/[ModelMapper] | https://github.com/modelmapper/modelmapper/[ModelMapper]
| https://github.com/jmnarloch/modelmapper-spring-boot-starter | https://github.com/jmnarloch/modelmapper-spring-boot-starter
| https://secondmarket.github.io/mongeez/[Mongeez] | https://github.com/mongeez/mongeez[Mongeez]
| https://github.com/hzpz/mongeez-spring-boot-starter/ | https://github.com/hzpz/mongeez-spring-boot-starter/
| https://ha-jdbc.github.io/[HA JDBC] | https://ha-jdbc.github.io/[HA JDBC]
@ -58,7 +58,7 @@ do as they were designed before this was clarified.
| https://www.google.com/recaptcha[Google's reCAPTCHA] | https://www.google.com/recaptcha[Google's reCAPTCHA]
| https://github.com/mkopylec/recaptcha-spring-boot-starter | https://github.com/mkopylec/recaptcha-spring-boot-starter
| http://www.mybatis.org/mybatis-3/[Mybatis] | https://github.com/mybatis/mybatis-3[MyBatis]
| https://github.com/mybatis/mybatis-spring-boot | https://github.com/mybatis/mybatis-spring-boot
| https://wicket.apache.org/[Apache Wicket] | https://wicket.apache.org/[Apache Wicket]

@ -24,7 +24,7 @@ import org.springframework.boot.loader.data.RandomAccessData;
* A ZIP File "End of central directory record" (EOCD). * A ZIP File "End of central directory record" (EOCD).
* *
* @author Phillip Webb * @author Phillip Webb
* @see <a href="https://en.wikipedia.org/wiki/Zip_%2528file_format%2529">Zip File Format</a> * @see <a href="https://en.wikipedia.org/wiki/Zip_%28file_format%29">Zip File Format</a>
*/ */
class CentralDirectoryEndRecord { class CentralDirectoryEndRecord {

@ -1,5 +1,5 @@
/* /*
* Copyright 2012-2015 the original author or authors. * Copyright 2012-2019 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -156,8 +156,8 @@ public final class JarEntryData {
/** /**
* Decode MS-DOS Date Time details. See * Decode MS-DOS Date Time details. See
* <a href="http://mindprod.com/jgloss/zip.html">mindprod.com/jgloss/zip.html</a> for * <a href="https://docs.microsoft.com/en-gb/windows/desktop/api/winbase/nf-winbase-dosdatetimetofiletime">
* more details of the format. * Microsoft's documentation</a> for more details of the format.
* @param date the date part * @param date the date part
* @param time the time part * @param time the time part
* @return a {@link Calendar} containing the decoded date. * @return a {@link Calendar} containing the decoded date.

@ -12,7 +12,7 @@
port to the integration test itself. port to the integration test itself.
The example below showcases how you could achieve the same feature using the The example below showcases how you could achieve the same feature using the
{{{https://mojo.codehaus.org/build-helper-maven-plugin/}build-helper-plugin}}: {{{https://www.mojohaus.org/build-helper-maven-plugin/}build-helper-plugin}}:
--- ---
<project> <project>

Loading…
Cancel
Save