Fix encoder/decoder to return decodableMimeTypes
This effectively fixes the Cbor exclusiion
This commit is contained in:
@@ -23,12 +23,6 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.springframework.boot</groupId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<artifactId>spring-boot-starter-rsocket</artifactId>
|
<artifactId>spring-boot-starter-rsocket</artifactId>
|
||||||
<exclusions>
|
|
||||||
<exclusion>
|
|
||||||
<groupId>com.fasterxml.jackson.dataformat</groupId>
|
|
||||||
<artifactId>jackson-dataformat-cbor</artifactId>
|
|
||||||
</exclusion>
|
|
||||||
</exclusions>
|
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>io.rsocket</groupId>
|
<groupId>io.rsocket</groupId>
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ class MessageAwareJsonDecoder extends AbstractDecoder<Object> {
|
|||||||
private final JsonMapper jsonMapper;
|
private final JsonMapper jsonMapper;
|
||||||
|
|
||||||
MessageAwareJsonDecoder(JsonMapper jsonMapper) {
|
MessageAwareJsonDecoder(JsonMapper jsonMapper) {
|
||||||
|
super(MimeTypeUtils.APPLICATION_JSON);
|
||||||
this.jsonMapper = jsonMapper;
|
this.jsonMapper = jsonMapper;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -55,6 +55,7 @@ class MessageAwareJsonEncoder extends AbstractEncoder<Object> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MessageAwareJsonEncoder(JsonMapper mapper, boolean isClient) {
|
MessageAwareJsonEncoder(JsonMapper mapper, boolean isClient) {
|
||||||
|
super(MimeTypeUtils.APPLICATION_JSON);
|
||||||
this.mapper = mapper;
|
this.mapper = mapper;
|
||||||
this.isClient = isClient;
|
this.isClient = isClient;
|
||||||
this.byteArrayEncoder = new ByteArrayEncoder();
|
this.byteArrayEncoder = new ByteArrayEncoder();
|
||||||
|
|||||||
Reference in New Issue
Block a user