Exposes supported mime types in Jaxb2Decoder

Closes gh-23278
This commit is contained in:
Rossen Stoyanchev 2019-07-13 11:00:43 +01:00
parent 5089824245
commit 235858e4e5
1 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,5 @@
/* /*
* Copyright 2002-2018 the original author or authors. * Copyright 2002-2019 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@ -82,6 +82,10 @@ public class Jaxb2XmlDecoder extends AbstractDecoder<Object> {
super(MimeTypeUtils.APPLICATION_XML, MimeTypeUtils.TEXT_XML); super(MimeTypeUtils.APPLICATION_XML, MimeTypeUtils.TEXT_XML);
} }
public Jaxb2XmlDecoder(MimeType... supportedMimeTypes) {
super(supportedMimeTypes);
}
/** /**
* Configure a processor function to customize Unmarshaller instances. * Configure a processor function to customize Unmarshaller instances.