Commit Graph

365 Commits

Author SHA1 Message Date
Oliver Gierke
f6a72c4281 #661 - Prepare 0.24 release.
Upgraded dependencies:

Spring Framework 4.3.11 -> 4.3.12
Logback 1.1.8 -> 1.1.11
Jackson 2.8.5 -> 2.8.10
Slf4J 1.7.22 -> 1.7.25
Evo Inflector 1.2.1 -> 1.2.2

Upgraded Spring Framework build profiles accordingly. Removed Asciidoctor plugin dependency for EPub as we don't actually generate them. Build plugin updates.
2017-10-30 15:12:13 +01:00
Kulcsár Roland
fcbfc1b1c8 #658 - Remove unused Enhancer variable in DummyInvocationUtils. 2017-10-30 12:42:31 +01:00
Oliver Gierke
d5e719825f #288 - Polishing.
Moved RenderSingleLinks enum into HalConfiguration. Simplified HalConfiguration setup by moving the default into the class. The lookup of a user-provided HalConfiguration is now handled on the bean name level to avoid premature initialization of a potentially defined bean. Formatting.

Original pull request: #295
Related issues: #291
2017-10-13 14:47:09 +02:00
Greg Turnquist
5eee30127d #288 - Introduced HalConfiguration to allow customizations of rendering options.
We now expose HalConfiguration to be defined as Spring bean in user configuration to control certain aspects of the HAL rendering. Initially we allow to control whether links shall always be rendered as collection. If no user-provided bean is available, we register a default instance.

Original pull request: #295
Related issues: #291
2017-10-13 14:30:16 +02:00
Kulcsár Roland
ab54e56f01 #638 - Fix typos in Javadoc. 2017-10-13 12:27:32 +02:00
Greg Turnquist
5faf9858bb #617 - AnnotatedParametersParameterAccessor now considers @AliasFor declarations.
We're now using SynthesizingMethodParameter to correctly support annotation attributes that use @AliasFor.

Original pull request: #621.
2017-10-13 11:43:08 +02:00
Oliver Gierke
4ad8c3b9aa #639 - Polishing.
Formatting and nullability in JavaDoc.
2017-10-05 15:28:21 +02:00
Oliver Gierke
ed7e430628 #639 - Added support for Optional controller method parameters in ControllerLinkBuilder.
We now properly consider Optional controller method parameters and correctly map its values to URIs created and optionality of the parameter derived.
2017-10-05 15:28:21 +02:00
Greg Turnquist
3006c47616 #635 - Upgrade to Spring 5 GA
On spring5 build profiles, use Spring 5 GA, and the subsequent snapshot release.
2017-09-28 11:53:59 -05:00
Greg Turnquist
ef825433e8 #627 - Upgrade to Spring 5 RC4 2017-09-18 09:48:47 -05:00
Oliver Gierke
9c7fa95541 #623 - Upgraded Spring 5 build profile to Jackson 2.9.1. 2017-09-08 17:28:15 +02:00
Oliver Gierke
8623106bb7 #597 - Polishing.
Formatting. Simplified resource loading in tests. Added missing line feed to ALPS sample file.
2017-09-07 13:49:14 +02:00
Greg Turnquist
b0820011e8 #597 - Add ALPS media type and LinkDiscoverer.
Migrate general ALPS material from Spring Data REST into Spring HATEOAS.
2017-09-07 13:48:37 +02:00
Oliver Gierke
312134ee82 #470 - Added HAL JSON UTF-8 variant to MediaTypes.
Added application/hal+json;charset=UTF-8 to the media types enum. Traverson now configures all HAL flavors to be supported by the registered HAL-specific HttpMessageConverter.

Removed nullability of media type in JsonPathLinkDiscoverer. This requires subclasses that want to support all media types to explicitly configure MediaType.ALL.

Heavily inspired by the PR submitted by @drummond but very significantly rewritten.
2017-09-07 13:37:59 +02:00
Oliver Gierke
05f687ef39 #567 - Polishing.
Field annotations inline. Formatting.
2017-07-28 09:45:04 +02:00
Greg Turnquist
891fd90f5a #567 - Add extra attributes to Link and use for HAL mediatype.
Adds many additional attributes defined in RFC5988 and verifies they work properly in the neutral representation of Link while also being rendered properly in the HAL module.

Related tickets: #100, #417, #235
Previous pull requests: #240, #238, #223, #79
2017-07-28 09:44:55 +02:00
Oliver Gierke
af3ec1a242 #408 - Polishing.
Original pull-request: #410.
Related issues: #330, #143, #516.
2017-07-27 19:04:50 +02:00
Greg Turnquist
b346366f73 #408 - Form relative links when outside a Spring web request
If forming a link outside a Spring web request, fallback to relative links.

Original pull-request: #410.
Related issues: #330, #143, #516.
2017-07-27 19:04:30 +02:00
Oliver Gierke
c784df964e #594 - Polishing.
Rather use early return for null annotation instead of conditional lookup.

Original pull request: #595.
2017-07-27 17:18:17 +02:00
Greg Turnquist
14a5a79490 #594 - Protect against Spring 5 non-null inputs.
Spring 5 has adopted a "no nulls" policy that causes certain methods to throw exceptions instead of returning a null. This updates Spring HATEOAS to handle it suitably.

Original pull request: #595.
2017-07-27 17:18:15 +02:00
Kulcsár Roland
82fb6ef9d2 #603 - Fix typos 2017-07-13 13:37:37 -05:00
Kulcsár Roland
6d86feb120 #604 - Make JacksonSerializationTest platform independent
Resolves #385
2017-07-11 10:45:09 -05:00
Kulcsár Roland
31c8b218b5 #600 - Fix typo in UriTemplate 2017-06-13 14:27:04 -05:00
Greg Turnquist
4807ae0e8a #585 - Add script to run ALL build profiles
Make it easier to pre-test all profiles without having to create a PR and wait on Travis.
2017-05-18 10:26:23 -05:00
Kulcsár Roland
483f8479bd #580 - Update IANA relation types
Per https://www.iana.org/assignments/link-relations/link-relations.xhtml, the list of standardized IANA rels has grown.
2017-05-17 11:11:26 -05:00
Oliver Gierke
6bed9bec40 #583 - Updated Jackson version to 2.9.0.pr for Spring 5 compatibility in build profile.
Fixed super constructor invocation to avoid NullPointerException in super class.
2017-05-16 13:33:27 +02:00
Oliver Gierke
d68700231e #582 - LinkBuilder now makes sure appended path is considered path segment.
We now prepend the given path (and query) handed to LinkBuilderSupport.slash(…) to make sure calls to UriComponentsBuilder.fromUriString(…) always considers the given value as path. Previously, a value containing a colon caused problems as the regex to detect scheme and port would accidentally match.

Related ticket: https://jira.spring.io/browse/DATAREST-1074
2017-05-16 13:13:52 +02:00
Greg Turnquist
1d1f1cffda #558 - Fix attempted double registration of message converters.
Original pull request: #568
2017-04-06 00:01:40 +02:00
Greg Turnquist
aafe1f2d63 #566 - Introduced ResourceSupport.getLinks(…) to return all with a given rel.
Related tickets: #542, #318, #319, #157.
2017-03-26 11:19:15 +02:00
Greg Turnquist
85682ea57f #565 - Add license file.
Original pull request: #564.
2017-03-26 11:15:15 +02:00
Oliver Gierke
e0bfa04beb #562 - Polishing.
Add Greg to project metadata in pom.xml.
2017-03-26 11:14:56 +02:00
Greg Turnquist
9f875b211b #562 - Clean up JavaDocs by removing references to downstream methods.
Putting in links to downstream methods (Spring Data Commons PagedResourcesAssembler.addPaginationLinks(…)) is not advisable.

Related ticket: #501.
2017-03-26 11:14:36 +02:00
Johnny Lim
2598370164 #561 - Fix typos in Javadoc of Traverson. 2017-03-26 11:13:49 +02:00
Behrang Saeedzadeh
7bb8d75fcb #555 - Fixed syntax highlighting in the reference guide.
Fixed syntax highlighting. Fixed code block indentation. Added the missing leading underscore in the example "_link" output. Added missing quotes to JSON code blocks.
2017-03-26 11:13:19 +02:00
Greg Turnquist
496c473766 #557 - Update "JSON" to "Jackson" in reference docs.
Related tickets: #554.
2017-03-26 11:12:43 +02:00
Greg Turnquist
fe8c3c476d #553 - Upgrade spring43-next build profile to 4.3.8.BUILD-SNAPSHOT. 2017-03-26 11:12:18 +02:00
Greg Turnquist
72f55530c0 #553 - Fix typo in configuration of Maven Dependency Plugin. 2017-03-26 11:11:51 +02:00
Greg Turnquist
784e988d13 #552 - Upgrade Spring5-next profile to 5.0 M5. 2017-03-26 11:10:38 +02:00
Greg Turnquist
07a611dfd5 #296 - Add .springBeans to list of ignored artifacts. 2017-03-26 11:10:24 +02:00
Johnny Lim
6ce294b61f #419 - Polish reference documentation.
Fixed references to constants in samples for Link. Also use endsWith(…) matcher in sample tests.
2017-03-26 11:10:12 +02:00
Christoph Lingg
bd6cc94e5e #452 - Fix typo in the reference documentation. 2017-03-26 11:06:46 +02:00
Mark Paluch
59688e3623 #468 - Integrate version badge from spring.io. 2017-03-14 13:27:02 -05:00
Andrew D. Ball
f7a1d96af8 #534 - Fixed typo in reference documentation. 2017-01-31 18:00:26 +01:00
Christoph Strobl
a16ea77c15 #536 - Remove references to Assert single-arg methods.
Remove usage of calls to single-argument assertion methods by providing message.

Original pull request: #537.
2017-01-31 17:56:14 +01:00
Oliver Gierke
276a7c1f70 #538 - Updated location of static resources. 2017-01-31 17:54:06 +01:00
Spring Buildmaster
283a25154e #529 - Prepare next development iteration. 2016-12-22 13:09:36 +00:00
Spring Buildmaster
e192661183 #529 - Release version 0.23.0.RELEASE. 2016-12-22 13:09:35 +00:00
Oliver Gierke
4ad0b97f12 #529 - Updated changelog. 2016-12-22 14:03:40 +01:00
Oliver Gierke
fb0ba255a6 #527 - Revert a glitch introduced in move to Spring's UriComponentsBuilder API.
Our migration to the header handling for #509 (47cefe) unfortunately moved from starting with the servlet mapping for URI creation to using the full URI from the start.

This is now fixed by switching back by creating a UriComponentsBuilder from the current servlet mapping.

Related ticket: #509.
2016-12-22 12:08:32 +01:00
Spring Buildmaster
61528d3242 #473 - Prepare next development iteration. 2016-12-22 09:04:54 +01:00