Skip to content

Commit

Permalink
Exposes supported mime types in Jaxb2Decoder
Browse files Browse the repository at this point in the history
Closes gh-23278
  • Loading branch information
rstoyanchev committed Jul 13, 2019
1 parent 5089824 commit 235858e
Showing 1 changed file with 5 additions and 1 deletion.
@@ -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");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -82,6 +82,10 @@ public Jaxb2XmlDecoder() {
super(MimeTypeUtils.APPLICATION_XML, MimeTypeUtils.TEXT_XML);
}

public Jaxb2XmlDecoder(MimeType... supportedMimeTypes) {
super(supportedMimeTypes);
}


/**
* Configure a processor function to customize Unmarshaller instances.
Expand Down

0 comments on commit 235858e

Please sign in to comment.