Skip to content

Commit 235858e

Browse files
committed
Exposes supported mime types in Jaxb2Decoder
Closes gh-23278
1 parent 5089824 commit 235858e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

spring-web/src/main/java/org/springframework/http/codec/xml/Jaxb2XmlDecoder.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -82,6 +82,10 @@ public Jaxb2XmlDecoder() {
8282
super(MimeTypeUtils.APPLICATION_XML, MimeTypeUtils.TEXT_XML);
8383
}
8484

85+
public Jaxb2XmlDecoder(MimeType... supportedMimeTypes) {
86+
super(supportedMimeTypes);
87+
}
88+
8589

8690
/**
8791
* Configure a processor function to customize Unmarshaller instances.

0 commit comments

Comments
 (0)