|
|
|
@ -42,6 +42,7 @@ import org.springframework.core.codec.AbstractDecoder; |
|
|
|
import org.springframework.core.io.buffer.DataBuffer; |
|
|
|
import org.springframework.core.io.buffer.DataBuffer; |
|
|
|
import org.springframework.core.io.buffer.DataBufferLimitException; |
|
|
|
import org.springframework.core.io.buffer.DataBufferLimitException; |
|
|
|
import org.springframework.core.io.buffer.DataBufferUtils; |
|
|
|
import org.springframework.core.io.buffer.DataBufferUtils; |
|
|
|
|
|
|
|
import org.springframework.http.MediaType; |
|
|
|
import org.springframework.lang.Nullable; |
|
|
|
import org.springframework.lang.Nullable; |
|
|
|
import org.springframework.util.ClassUtils; |
|
|
|
import org.springframework.util.ClassUtils; |
|
|
|
import org.springframework.util.MimeType; |
|
|
|
import org.springframework.util.MimeType; |
|
|
|
@ -94,7 +95,7 @@ public class XmlEventDecoder extends AbstractDecoder<XMLEvent> { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public XmlEventDecoder() { |
|
|
|
public XmlEventDecoder() { |
|
|
|
super(MimeTypeUtils.APPLICATION_XML, MimeTypeUtils.TEXT_XML); |
|
|
|
super(MimeTypeUtils.APPLICATION_XML, MimeTypeUtils.TEXT_XML, new MediaType("application", "*+xml")); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|