Skip to content

Commit 201365d

Browse files
Spring Operatorgregturn
Spring Operator
authored andcommitted
#910 - URL Cleanup.
This commit updates URLs to prefer the https protocol. Redirects are not followed to avoid accidentally expanding intentionally shortened URLs (i.e. if using a URL shortener). # HTTP URLs that Could Not Be Fixed These URLs were unable to be fixed. Please review them to see if they can be manually resolved. * [ ] http://alps.io (200) with 1 occurrences could not be migrated: ([https](https://alps.io) result AnnotatedConnectException). * [ ] http://alps.io/spec/ (200) with 6 occurrences could not be migrated: ([https](https://alps.io/spec/) result AnnotatedConnectException). * [ ] http://amundsen.com/media-types/collection/examples/ (200) with 7 occurrences could not be migrated: ([https](https://amundsen.com/media-types/collection/examples/) result AnnotatedConnectException). * [ ] http://amundsen.com/media-types/collection/format/ (200) with 1 occurrences could not be migrated: ([https](https://amundsen.com/media-types/collection/format/) result AnnotatedConnectException). * [ ] http://stateless.co/hal_specification.html (200) with 2 occurrences could not be migrated: ([https](https://stateless.co/hal_specification.html) result SSLHandshakeException). * [ ] http://foo.com/bar (301) with 6 occurrences could not be migrated: ([https](https://foo.com/bar) result SSLHandshakeException). * [ ] http://www.csse.monash.edu.au/~damian/papers/HTML/Plurals.html (302) with 1 occurrences could not be migrated: ([https](https://www.csse.monash.edu.au/~damian/papers/HTML/Plurals.html) result SSLHandshakeException). * [ ] http://alps.io/ext/range (404) with 2 occurrences could not be migrated: ([https](https://alps.io/ext/range) result AnnotatedConnectException). # Fixed URLs ## Fixed But Review Recommended These URLs were fixed, but the https status was not OK. However, the https status was the same as the http request or http redirected to an https URL, so they were migrated. Your review is recommended. * [ ] http://tools.ietf.org/html/draft-kelly-json-hal (301) with 2 occurrences migrated to: https://tools.ietf.org/html/draft-kelly-json-hal ([https](https://tools.ietf.org/html/draft-kelly-json-hal) result ReadTimeoutException). * [ ] http://examples.org/blogs/jdoe (UnknownHostException) with 5 occurrences migrated to: https://examples.org/blogs/jdoe ([https](https://examples.org/blogs/jdoe) result UnknownHostException). * [ ] http://examples.org/blogs/msmith (UnknownHostException) with 3 occurrences migrated to: https://examples.org/blogs/msmith ([https](https://examples.org/blogs/msmith) result UnknownHostException). * [ ] http://examples.org/blogs/rwilliams (UnknownHostException) with 3 occurrences migrated to: https://examples.org/blogs/rwilliams ([https](https://examples.org/blogs/rwilliams) result UnknownHostException). * [ ] http://examples.org/images/jdoe (UnknownHostException) with 5 occurrences migrated to: https://examples.org/images/jdoe ([https](https://examples.org/images/jdoe) result UnknownHostException). * [ ] http://examples.org/images/msmith (UnknownHostException) with 3 occurrences migrated to: https://examples.org/images/msmith ([https](https://examples.org/images/msmith) result UnknownHostException). * [ ] http://examples.org/images/rwilliams (UnknownHostException) with 3 occurrences migrated to: https://examples.org/images/rwilliams ([https](https://examples.org/images/rwilliams) result UnknownHostException). * [ ] http://acme.com/rels/foo-bar (404) with 2 occurrences migrated to: https://acme.com/rels/foo-bar ([https](https://acme.com/rels/foo-bar) result 404). * [ ] http://docs.spring.io/spring-hateoas/docs/current-SNAPSHOT/api/ (301) with 1 occurrences migrated to: https://docs.spring.io/spring-hateoas/docs/current-SNAPSHOT/api/ ([https](https://docs.spring.io/spring-hateoas/docs/current-SNAPSHOT/api/) result 404). * [ ] http://example.com/custom/deprecated (404) with 1 occurrences migrated to: https://example.com/custom/deprecated ([https](https://example.com/custom/deprecated) result 404). * [ ] http://example.com/customers/deprecated (404) with 2 occurrences migrated to: https://example.com/customers/deprecated ([https](https://example.com/customers/deprecated) result 404). * [ ] http://example.com/rels/ (404) with 2 occurrences migrated to: https://example.com/rels/ ([https](https://example.com/rels/) result 404). * [ ] http://example.com/rels/persons (404) with 1 occurrences migrated to: https://example.com/rels/persons ([https](https://example.com/rels/persons) result 404). * [ ] http://example.org/blogs/wchandry (404) with 2 occurrences migrated to: https://example.org/blogs/wchandry ([https](https://example.org/blogs/wchandry) result 404). * [ ] http://example.org/friends/ (404) with 13 occurrences migrated to: https://example.org/friends/ ([https](https://example.org/friends/) result 404). * [ ] http://example.org/friends/?queries (404) with 2 occurrences migrated to: https://example.org/friends/?queries ([https](https://example.org/friends/?queries) result 404). * [ ] http://example.org/friends/?template (404) with 2 occurrences migrated to: https://example.org/friends/?template ([https](https://example.org/friends/?template) result 404). * [ ] http://example.org/friends/jdoe (404) with 4 occurrences migrated to: https://example.org/friends/jdoe ([https](https://example.org/friends/jdoe) result 404). * [ ] http://example.org/friends/msmith (404) with 2 occurrences migrated to: https://example.org/friends/msmith ([https](https://example.org/friends/msmith) result 404). * [ ] http://example.org/friends/rss (404) with 5 occurrences migrated to: https://example.org/friends/rss ([https](https://example.org/friends/rss) result 404). * [ ] http://example.org/friends/rwilliams (404) with 2 occurrences migrated to: https://example.org/friends/rwilliams ([https](https://example.org/friends/rwilliams) result 404). * [ ] http://example.org/friends/search (404) with 2 occurrences migrated to: https://example.org/friends/search ([https](https://example.org/friends/search) result 404). * [ ] http://example.org/images/wchandry (404) with 2 occurrences migrated to: https://example.org/images/wchandry ([https](https://example.org/images/wchandry) result 404). * [ ] http://example.org/samples/full/doc.html (404) with 3 occurrences migrated to: https://example.org/samples/full/doc.html ([https](https://example.org/samples/full/doc.html) result 404). * [ ] http://www.example.com/rels/ (404) with 1 occurrences migrated to: https://www.example.com/rels/ ([https](https://www.example.com/rels/) result 404). ## Fixed Success These URLs were switched to an https URL with a 2xx status. While the status was successful, your review is still recommended. * [ ] http://docs.spring.io/spring-hateoas/docs/current/reference/html/ with 1 occurrences migrated to: https://docs.spring.io/spring-hateoas/docs/current/reference/html/ ([https](https://docs.spring.io/spring-hateoas/docs/current/reference/html/) result 200). * [ ] http://docs.spring.io/spring-hateoas/docs/current/reference/pdf/spring-hateoas-reference.pdf with 1 occurrences migrated to: https://docs.spring.io/spring-hateoas/docs/current/reference/pdf/spring-hateoas-reference.pdf ([https](https://docs.spring.io/spring-hateoas/docs/current/reference/pdf/spring-hateoas-reference.pdf) result 200). * [ ] http://en.wikipedia.org/wiki/HATEOAS with 2 occurrences migrated to: https://en.wikipedia.org/wiki/HATEOAS ([https](https://en.wikipedia.org/wiki/HATEOAS) result 200). * [ ] http://example.com?name=foo with 1 occurrences migrated to: https://example.com?name=foo ([https](https://example.com?name=foo) result 200). * [ ] http://mamund.site44.com/misc/hal-forms/ with 1 occurrences migrated to: https://mamund.site44.com/misc/hal-forms/ ([https](https://mamund.site44.com/misc/hal-forms/) result 200). * [ ] http://projects.spring.io/spring-hateoas/ with 2 occurrences migrated to: https://projects.spring.io/spring-hateoas/ ([https](https://projects.spring.io/spring-hateoas/) result 200). * [ ] http://tools.ietf.org/html/draft-kelly-json-hal-05 with 1 occurrences migrated to: https://tools.ietf.org/html/draft-kelly-json-hal-05 ([https](https://tools.ietf.org/html/draft-kelly-json-hal-05) result 200). * [ ] http://tools.ietf.org/html/rfc6570 with 1 occurrences migrated to: https://tools.ietf.org/html/rfc6570 ([https](https://tools.ietf.org/html/rfc6570) result 200). * [ ] http://tools.ietf.org/html/rfc7239 with 1 occurrences migrated to: https://tools.ietf.org/html/rfc7239 ([https](https://tools.ietf.org/html/rfc7239) result 200). * [ ] http://www.example.com with 2 occurrences migrated to: https://www.example.com ([https](https://www.example.com) result 200). * [ ] http://www.iana.org/assignments/link-relations/link-relations.xhtml with 2 occurrences migrated to: https://www.iana.org/assignments/link-relations/link-relations.xhtml ([https](https://www.iana.org/assignments/link-relations/link-relations.xhtml) result 200). * [ ] http://amazon.com with 4 occurrences migrated to: https://amazon.com ([https](https://amazon.com) result 301). * [ ] http://contributor-covenant.org with 1 occurrences migrated to: https://contributor-covenant.org ([https](https://contributor-covenant.org) result 301). * [ ] http://contributor-covenant.org/version/1/3/0/ with 1 occurrences migrated to: https://contributor-covenant.org/version/1/3/0/ ([https](https://contributor-covenant.org/version/1/3/0/) result 301). * [ ] http://www.w3.org/TR/curie with 1 occurrences migrated to: https://www.w3.org/TR/curie ([https](https://www.w3.org/TR/curie) result 301). * [ ] http://tools.ietf.org/html/rfc5988=section-4 with 1 occurrences migrated to: https://tools.ietf.org/html/rfc5988=section-4 ([https](https://tools.ietf.org/html/rfc5988=section-4) result 302). * [ ] http://www.springsource.org/download with 1 occurrences migrated to: https://www.springsource.org/download ([https](https://www.springsource.org/download) result 302). # Ignored These URLs were intentionally ignored. * http://barfoo:8888 with 1 occurrences * http://foobar with 1 occurrences * http://foobar:8088 with 1 occurrences * http://foobarhost/ with 1 occurrences * http://foobarhost:9090/ with 1 occurrences * http://localhost with 7 occurrences * http://localhost/ with 1 occurrences * http://localhost/employees with 21 occurrences * http://localhost/employees/0 with 8 occurrences * http://localhost/employees/1 with 2 occurrences * http://localhost/employees/2 with 7 occurrences * http://localhost/sample/1/foo with 1 occurrences * http://localhost/sample/2/bar with 1 occurrences * http://localhost/something/bar/foo with 1 occurrences * http://localhost:8080/api/ with 1 occurrences * http://localhost:8080/foo with 2 occurrences * http://localhost:8080/rels with 1 occurrences * http://localhost:8080/rels/ with 6 occurrences * http://localhost:8080/something with 4 occurrences * http://localhost:8080/test?page=0&filter=foo,bar with 2 occurrences * http://localhost:8080/your-app with 1 occurrences * http://localhost:8080/your-app/people with 1 occurrences * http://myhost/people with 4 occurrences * http://myhost/person/1 with 1 occurrences * http://myhost/person/1/orders with 1 occurrences * http://proxy1:1443 with 1 occurrences * http://somethingDifferent with 1 occurrences * http://www.w3.org/2005/Atom with 3 occurrences
1 parent fee2b94 commit 201365d

31 files changed

+98
-98
lines changed

CODE_OF_CONDUCT.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ Instances of abusive, harassing, or otherwise unacceptable behavior may be repor
2424
All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances.
2525
Maintainers are obligated to maintain confidentiality with regard to the reporter of an incident.
2626

27-
This Code of Conduct is adapted from the http://contributor-covenant.org[Contributor Covenant], version 1.3.0, available at http://contributor-covenant.org/version/1/3/0/[contributor-covenant.org/version/1/3/0/].
27+
This Code of Conduct is adapted from the https://contributor-covenant.org[Contributor Covenant], version 1.3.0, available at https://contributor-covenant.org/version/1/3/0/[contributor-covenant.org/version/1/3/0/].

readme.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
image:https://spring.io/badges/spring-hateoas/ga.svg[http://projects.spring.io/spring-hateoas/#quick-start]
2-
image:https://spring.io/badges/spring-hateoas/snapshot.svg[http://projects.spring.io/spring-hateoas/#quick-start]
1+
image:https://spring.io/badges/spring-hateoas/ga.svg[https://projects.spring.io/spring-hateoas/#quick-start]
2+
image:https://spring.io/badges/spring-hateoas/snapshot.svg[https://projects.spring.io/spring-hateoas/#quick-start]
33

44
= Spring HATEOAS
55

6-
This project provides some APIs to ease creating REST representations that follow the http://en.wikipedia.org/wiki/HATEOAS[HATEOAS] principle when working with Spring and especially Spring MVC. The core problem it tries to address is link creation and representation assembly.
6+
This project provides some APIs to ease creating REST representations that follow the https://en.wikipedia.org/wiki/HATEOAS[HATEOAS] principle when working with Spring and especially Spring MVC. The core problem it tries to address is link creation and representation assembly.
77

88
== Working with Spring HATEOAS
99

@@ -16,6 +16,6 @@ git config core.commentchar "/"
1616

1717
== Resources
1818

19-
* Reference documentation - http://docs.spring.io/spring-hateoas/docs/current/reference/html/[html], http://docs.spring.io/spring-hateoas/docs/current/reference/pdf/spring-hateoas-reference.pdf[pdf]
20-
* http://docs.spring.io/spring-hateoas/docs/current-SNAPSHOT/api/[JavaDoc]
19+
* Reference documentation - https://docs.spring.io/spring-hateoas/docs/current/reference/html/[html], https://docs.spring.io/spring-hateoas/docs/current/reference/pdf/spring-hateoas-reference.pdf[pdf]
20+
* https://docs.spring.io/spring-hateoas/docs/current-SNAPSHOT/api/[JavaDoc]
2121
* https://spring.io/guides/gs/rest-hateoas/[Getting started guide]

src/main/asciidoc/index.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Oliver Gierke, Greg Turnquist;
66
:toc-placement!:
77

88

9-
This project provides some APIs to ease creating REST representations that follow the http://en.wikipedia.org/wiki/HATEOAS[HATEOAS] principle when working with Spring and especially Spring MVC. The core problem it tries to address is link creation and representation assembly.
9+
This project provides some APIs to ease creating REST representations that follow the https://en.wikipedia.org/wiki/HATEOAS[HATEOAS] principle when working with Spring and especially Spring MVC. The core problem it tries to address is link creation and representation assembly.
1010

1111
(C) 2012-2015 The original authors.
1212

@@ -290,7 +290,7 @@ List<PersonResource> resources = assembler.toResources(people);
290290

291291
[[configuration.at-enable]]
292292
=== @EnableHypermediaSupport
293-
To enable the `ResourceSupport` subtypes be rendered according to the specification of various hypermedia representations types, the support for a particular hypermedia representation format can be activated through `@EnableHypermediaSupport`. The annotation takes a `HypermediaType` enumeration as argument. Currently we support http://tools.ietf.org/html/draft-kelly-json-hal[HAL] as well as a default rendering. Using the annotation triggers the following:
293+
To enable the `ResourceSupport` subtypes be rendered according to the specification of various hypermedia representations types, the support for a particular hypermedia representation format can be activated through `@EnableHypermediaSupport`. The annotation takes a `HypermediaType` enumeration as argument. Currently we support https://tools.ietf.org/html/draft-kelly-json-hal[HAL] as well as a default rendering. Using the annotation triggers the following:
294294

295295
* registers necessary Jackson modules to render `Resource`/`Resources` in the hypermedia specific format.
296296
* if JSONPath is on the classpath, it automatically registers a `LinkDiscoverer` instance to lookup links by their `rel` in plain JSON representations (see <<client.link-discoverer>>).
@@ -316,7 +316,7 @@ A `RelProvider` is exposed as Spring bean when using `@EnableHypermediaSupport`
316316
[[spis.curie-provider]]
317317
=== CurieProvider API
318318

319-
The http://tools.ietf.org/html/rfc5988=section-4[Web Linking RFC] describes registered and extension link relation types. Registered rels are well-known strings registered with the http://www.iana.org/assignments/link-relations/link-relations.xhtml[IANA registry of link relation types]. Extension rels can be used by applications that do not wish to register a relation type. They are a URI that uniquely identifies the relation type. The rel URI can be serialized as a compact URI or http://www.w3.org/TR/curie[Curie]. E.g. a curie `ex:persons` stands for the link relation type `http://example.com/rels/persons` if `ex` is defined as `http://example.com/rels/{rel}`. If curies are used, the base URI must be present in the response scope.
319+
The https://tools.ietf.org/html/rfc5988=section-4[Web Linking RFC] describes registered and extension link relation types. Registered rels are well-known strings registered with the https://www.iana.org/assignments/link-relations/link-relations.xhtml[IANA registry of link relation types]. Extension rels can be used by applications that do not wish to register a relation type. They are a URI that uniquely identifies the relation type. The rel URI can be serialized as a compact URI or https://www.w3.org/TR/curie[Curie]. E.g. a curie `ex:persons` stands for the link relation type `https://example.com/rels/persons` if `ex` is defined as `https://example.com/rels/{rel}`. If curies are used, the base URI must be present in the response scope.
320320

321321
The rels created by the default `RelProvider` are extension relation types and as such must be URIs, which can cause a lot of overhead. The `CurieProvider` API takes care of that: it allows to define a base URI as URI template and a prefix which stands for that base URI. If a `CurieProvider` is present, the `RelProvider` prepends all rels with the curie prefix. Furthermore a `curies` link is automatically added to the HAL resource.
322322

@@ -331,7 +331,7 @@ public class Config {
331331
332332
@Bean
333333
public CurieProvider curieProvider() {
334-
return new DefaultCurieProvider("ex", new UriTemplate("http://www.example.com/rels/{rel}"));
334+
return new DefaultCurieProvider("ex", new UriTemplate("https://www.example.com/rels/{rel}"));
335335
}
336336
}
337337
----
@@ -345,7 +345,7 @@ Note that now the prefix `ex:` automatically appears before all rels which are n
345345
"self" : { href: "http://myhost/person/1" },
346346
"curies" : {
347347
"name" : "ex",
348-
"href" : "http://example.com/rels/{rel}",
348+
"href" : "https://example.com/rels/{rel}",
349349
"templated" : true
350350
},
351351
"ex:orders" : { href : "http://myhost/person/1/orders" }

src/main/java/org/springframework/hateoas/IanaRels.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
/**
2626
* Static class to find out whether a relation type is defined by the IANA.
2727
*
28-
* @see http://www.iana.org/assignments/link-relations/link-relations.xhtml
28+
* @see https://www.iana.org/assignments/link-relations/link-relations.xhtml
2929
* @author Oliver Gierke
3030
* @author Roland Kulcsár
3131
*/

src/main/java/org/springframework/hateoas/QueryParameter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
import lombok.RequiredArgsConstructor;
2020

2121
/**
22-
* Web framework-neutral representation of a web request's query parameter (http://example.com?name=foo).
22+
* Web framework-neutral representation of a web request's query parameter (https://example.com?name=foo).
2323
*
2424
* @author Greg Turnquist
2525
*/

src/main/java/org/springframework/hateoas/UriTemplate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* Custom URI template to support qualified URI template variables.
3737
*
3838
* @author Oliver Gierke
39-
* @see http://tools.ietf.org/html/rfc6570
39+
* @see https://tools.ietf.org/html/rfc6570
4040
* @since 0.9
4141
*/
4242
public class UriTemplate implements Iterable<TemplateVariable>, Serializable {

src/main/java/org/springframework/hateoas/config/EnableHypermediaSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ enum HypermediaType {
6767
* HAL - Hypermedia Application Language.
6868
*
6969
* @see http://stateless.co/hal_specification.html
70-
* @see http://tools.ietf.org/html/draft-kelly-json-hal-05
70+
* @see https://tools.ietf.org/html/draft-kelly-json-hal-05
7171
*/
7272
HAL,
7373

src/main/java/org/springframework/hateoas/core/EvoInflectorRelProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
* {@link RelProvider} implementation using the Evo Inflector implementation of an algorithmic approach to English
2323
* plurals.
2424
*
25-
* @see http://www.csse.monash.edu.au/~damian/papers/HTML/Plurals.html
25+
* @see http://users.monash.edu/~damian/papers/HTML/Plurals.html
2626
* @author Oliver Gierke
2727
*/
2828
public class EvoInflectorRelProvider extends DefaultRelProvider {

src/main/java/org/springframework/hateoas/hal/CurieProvider.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
/**
2424
* API to provide HAL curie information for links.
2525
*
26-
* @see http://tools.ietf.org/html/draft-kelly-json-hal#section-8.2
26+
* @see https://tools.ietf.org/html/draft-kelly-json-hal#section-8.2
2727
* @author Oliver Gierke
2828
* @author Jeff Stano
2929
* @since 0.9

src/main/java/org/springframework/hateoas/hal/forms/HalFormsProperty.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
* Describe a parameter for the associated state transition in a HAL-FORMS document. A {@link HalFormsTemplate} may
3232
* contain a list of {@link HalFormsProperty}s
3333
*
34-
* @see http://mamund.site44.com/misc/hal-forms/
34+
* @see https://mamund.site44.com/misc/hal-forms/
3535
*/
3636
@JsonInclude(Include.NON_DEFAULT)
3737
@Value

src/main/java/org/springframework/hateoas/mvc/ForwardedHeader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
* Value object to partially implement the {@literal Forwarded} header defined in RFC 7239.
2828
*
2929
* @author Oliver Gierke
30-
* @see http://tools.ietf.org/html/rfc7239
30+
* @see https://tools.ietf.org/html/rfc7239
3131
*/
3232
class ForwardedHeader {
3333

src/main/resources/license.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ similar licenses that require the source code and/or modifications to
207207
source code to be made available (as would be noted above), you may obtain a
208208
copy of the source code corresponding to the binaries for such open source
209209
components and modifications thereto, if any, (the "Source Files"), by
210-
downloading the Source Files from http://www.springsource.org/download,
210+
downloading the Source Files from https://www.springsource.org/download,
211211
or by sending a request, with your name and address to: VMware, Inc., 3401 Hillview
212212
Avenue, Palo Alto, CA 94304, United States of America or email [email protected]. All
213213
such requests should clearly specify: OPEN SOURCE FILES REQUEST, Attention General

src/test/java/org/springframework/hateoas/LinkUnitTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,13 @@ public void parsesRFC5988HeaderIntoLink() {
122122
+ "media=\"pdf\";" //
123123
+ "title=\"pdf customer copy\";" //
124124
+ "type=\"portable document\";" //
125-
+ "deprecation=\"http://example.com/customers/deprecated\"")) //
125+
+ "deprecation=\"https://example.com/customers/deprecated\"")) //
126126
.isEqualTo(new Link("/customer/1") //
127127
.withHreflang("en") //
128128
.withMedia("pdf") //
129129
.withTitle("pdf customer copy") //
130130
.withType("portable document") //
131-
.withDeprecation("http://example.com/customers/deprecated"));
131+
.withDeprecation("https://example.com/customers/deprecated"));
132132
}
133133

134134
/**
@@ -221,8 +221,8 @@ public void parsesLinkRelationWithDotAndMinus() {
221221
@Test
222222
public void parsesUriLinkRelations() {
223223

224-
assertThat(Link.valueOf("<http://localhost>; rel=\"http://acme.com/rels/foo-bar\"").getRel()) //
225-
.isEqualTo("http://acme.com/rels/foo-bar");
224+
assertThat(Link.valueOf("<http://localhost>; rel=\"https://acme.com/rels/foo-bar\"").getRel()) //
225+
.isEqualTo("https://acme.com/rels/foo-bar");
226226
}
227227

228228
/**

src/test/java/org/springframework/hateoas/alps/AlpsLinkDiscoverUnitTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public class AlpsLinkDiscoverUnitTest extends AbstractLinkDiscovererUnitTest {
4040
@Test
4141
public void discoversFullyQualifiedRel() {
4242

43-
Link link = getDiscoverer().findLinkWithRel("http://foo.com/bar", getInputString());
43+
Link link = getDiscoverer().findLinkWithRel("http://www.foo.com/bar", getInputString());
4444

4545
assertThat(link).isNotNull();
4646
assertThat(link.getHref()).isEqualTo("fullRelHref");

src/test/java/org/springframework/hateoas/alps/JacksonSerializationTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public void setUp() {
5656
public void writesSampleDocument() throws Exception {
5757

5858
Alps alps = alps().//
59-
doc(doc().href("http://example.org/samples/full/doc.html").build()). //
59+
doc(doc().href("https://example.org/samples/full/doc.html").build()). //
6060
descriptor(Arrays.asList(//
6161
descriptor().id("search").type(Type.SAFE).//
6262
doc(new Doc("A search form with two inputs.", Format.TEXT)).//

src/test/java/org/springframework/hateoas/client/TraversonTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ public void readsTraversalIntoResourceInstance() {
146146
@Test
147147
public void sendsConfiguredHeadersForJsonPathExpression() {
148148

149-
String expectedHeader = "<http://www.example.com>;rel=\"home\"";
149+
String expectedHeader = "<https://www.example.com>;rel=\"home\"";
150150

151151
HttpHeaders headers = new HttpHeaders();
152152
headers.add("Link", expectedHeader);
@@ -165,7 +165,7 @@ public void sendsConfiguredHeadersForJsonPathExpression() {
165165
@Test
166166
public void sendsConfiguredHeadersForToEntity() {
167167

168-
String expectedHeader = "<http://www.example.com>;rel=\"home\"";
168+
String expectedHeader = "<https://www.example.com>;rel=\"home\"";
169169

170170
HttpHeaders headers = new HttpHeaders();
171171
headers.add("Link", expectedHeader);

src/test/java/org/springframework/hateoas/collectionjson/CollectionJsonLinkDiscovererUnitTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void spec1Links() throws IOException {
4949
Link link = this.discoverer.findLinkWithRel("self", specBasedJson);
5050

5151
assertThat(link).isNotNull();
52-
assertThat(link.getHref()).isEqualTo("http://example.org/friends/");
52+
assertThat(link.getHref()).isEqualTo("https://example.org/friends/");
5353
}
5454

5555
@Test
@@ -60,29 +60,29 @@ public void spec2Links() throws IOException {
6060
Link selfLink = this.discoverer.findLinkWithRel("self", specBasedJson);
6161

6262
assertThat(selfLink).isNotNull();
63-
assertThat(selfLink.getHref()).isEqualTo("http://example.org/friends/");
63+
assertThat(selfLink.getHref()).isEqualTo("https://example.org/friends/");
6464

6565
Link feedLink = this.discoverer.findLinkWithRel("feed", specBasedJson);
6666

6767
assertThat(feedLink).isNotNull();
68-
assertThat(feedLink.getHref()).isEqualTo("http://example.org/friends/rss");
68+
assertThat(feedLink.getHref()).isEqualTo("https://example.org/friends/rss");
6969

7070
List<Link> links = this.discoverer.findLinksWithRel("blog", specBasedJson);
7171

7272
assertThat(links)
7373
.extracting("href")
7474
.containsExactlyInAnyOrder(
75-
"http://examples.org/blogs/jdoe",
76-
"http://examples.org/blogs/msmith",
77-
"http://examples.org/blogs/rwilliams");
75+
"https://examples.org/blogs/jdoe",
76+
"https://examples.org/blogs/msmith",
77+
"https://examples.org/blogs/rwilliams");
7878

7979
links = this.discoverer.findLinksWithRel("avatar", specBasedJson);
8080

8181
assertThat(links)
8282
.extracting("href")
8383
.containsExactlyInAnyOrder(
84-
"http://examples.org/images/jdoe",
85-
"http://examples.org/images/msmith",
86-
"http://examples.org/images/rwilliams");
84+
"https://examples.org/images/jdoe",
85+
"https://examples.org/images/msmith",
86+
"https://examples.org/images/rwilliams");
8787
}
8888
}

0 commit comments

Comments
 (0)