|
1 | 1 | /*
|
2 |
| - * Copyright 2002-2017 the original author or authors. |
| 2 | + * Copyright 2002-2019 the original author or authors. |
3 | 3 | *
|
4 | 4 | * Licensed under the Apache License, Version 2.0 (the "License");
|
5 | 5 | * you may not use this file except in compliance with the License.
|
|
25 | 25 | import org.springframework.util.Assert;
|
26 | 26 |
|
27 | 27 | /**
|
28 |
| - * Implementation of {@link org.springframework.http.converter.HttpMessageConverter HttpMessageConverter} |
29 |
| - * that can read and write <a href="https://cbor.io/">CBOR</a> data format using |
30 |
| - * <a href="https://github.com/FasterXML/jackson-dataformats-binary/tree/master/cbor"> |
| 28 | + * Implementation of {@link org.springframework.http.converter.HttpMessageConverter |
| 29 | + * HttpMessageConverter} that can read and write the <a href="https://cbor.io/">CBOR</a> |
| 30 | + * data format using <a href="https://github.com/FasterXML/jackson-dataformats-binary/tree/master/cbor"> |
31 | 31 | * the dedicated Jackson 2.x extension</a>.
|
32 | 32 | *
|
33 |
| - * <p>By default, this converter supports {@value MediaType#APPLICATION_CBOR_VALUE} media type. This can be |
34 |
| - * overridden by setting the {@link #setSupportedMediaTypes supportedMediaTypes} property. |
| 33 | + * <p>By default, this converter supports the {@link MediaType#APPLICATION_CBOR_VALUE} |
| 34 | + * media type. This can be overridden by setting the {@link #setSupportedMediaTypes |
| 35 | + * supportedMediaTypes} property. |
35 | 36 | *
|
36 |
| - * <p>The default constructor uses the default configuration provided by {@link Jackson2ObjectMapperBuilder}. |
| 37 | + * <p>The default constructor uses the default configuration provided by |
| 38 | + * {@link Jackson2ObjectMapperBuilder}. |
37 | 39 | *
|
38 | 40 | * <p>Compatible with Jackson 2.9 and higher.
|
39 | 41 | *
|
|
43 | 45 | public class MappingJackson2CborHttpMessageConverter extends AbstractJackson2HttpMessageConverter {
|
44 | 46 |
|
45 | 47 | /**
|
46 |
| - * Construct a new {@code MappingJackson2CborHttpMessageConverter} using default configuration |
47 |
| - * provided by {@code Jackson2ObjectMapperBuilder}. |
| 48 | + * Construct a new {@code MappingJackson2CborHttpMessageConverter} using the |
| 49 | + * default configuration provided by {@code Jackson2ObjectMapperBuilder}. |
48 | 50 | */
|
49 | 51 | public MappingJackson2CborHttpMessageConverter() {
|
50 | 52 | this(Jackson2ObjectMapperBuilder.cbor().build());
|
51 | 53 | }
|
52 | 54 |
|
53 | 55 | /**
|
54 |
| - * Construct a new {@code MappingJackson2CborHttpMessageConverter} with a custom {@link ObjectMapper} |
55 |
| - * (must be configured with a {@code CBORFactory} instance). |
56 |
| - * You can use {@link Jackson2ObjectMapperBuilder} to build it easily. |
| 56 | + * Construct a new {@code MappingJackson2CborHttpMessageConverter} with a |
| 57 | + * custom {@link ObjectMapper} (must be configured with a {@code CBORFactory} |
| 58 | + * instance). |
| 59 | + * <p>You can use {@link Jackson2ObjectMapperBuilder} to build it easily. |
57 | 60 | * @see Jackson2ObjectMapperBuilder#cbor()
|
58 | 61 | */
|
59 | 62 | public MappingJackson2CborHttpMessageConverter(ObjectMapper objectMapper) {
|
|
0 commit comments