Polishing
This commit is contained in:
parent
ba2bac17de
commit
21cca695e5
|
|
@ -78,6 +78,11 @@ public class MediaType implements Comparable<MediaType> {
|
||||||
* */
|
* */
|
||||||
public final static MediaType APPLICATION_XHTML_XML;
|
public final static MediaType APPLICATION_XHTML_XML;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Public constant media type for {@code application/xml}.
|
||||||
|
*/
|
||||||
|
public final static MediaType APPLICATION_XML;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Public constant media type for {@code image/gif}.
|
* Public constant media type for {@code image/gif}.
|
||||||
*/
|
*/
|
||||||
|
|
@ -93,11 +98,6 @@ public class MediaType implements Comparable<MediaType> {
|
||||||
*/
|
*/
|
||||||
public final static MediaType IMAGE_PNG;
|
public final static MediaType IMAGE_PNG;
|
||||||
|
|
||||||
/**
|
|
||||||
* Public constant media type for {@code image/xml}.
|
|
||||||
*/
|
|
||||||
public final static MediaType APPLICATION_XML;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Public constant media type for {@code multipart/form-data}.
|
* Public constant media type for {@code multipart/form-data}.
|
||||||
* */
|
* */
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ public abstract class AbstractXmlHttpMessageConverter<T> extends AbstractHttpMes
|
||||||
* to {@code text/xml} and {@code application/xml}, and {@code application/*-xml}.
|
* to {@code text/xml} and {@code application/xml}, and {@code application/*-xml}.
|
||||||
*/
|
*/
|
||||||
protected AbstractXmlHttpMessageConverter() {
|
protected AbstractXmlHttpMessageConverter() {
|
||||||
super(new MediaType("application", "xml"), new MediaType("text", "xml"), new MediaType("application", "*+xml"));
|
super(MediaType.APPLICATION_XML, MediaType.TEXT_XML, new MediaType("application", "*+xml"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -70,7 +70,7 @@ public abstract class AbstractXmlHttpMessageConverter<T> extends AbstractHttpMes
|
||||||
* Transforms the given {@code Source} to the {@code Result}.
|
* Transforms the given {@code Source} to the {@code Result}.
|
||||||
* @param source the source to transform from
|
* @param source the source to transform from
|
||||||
* @param result the result to transform to
|
* @param result the result to transform to
|
||||||
* @throws HttpMessageConversionException in case of transformation errors
|
* @throws TransformerException in case of transformation errors
|
||||||
*/
|
*/
|
||||||
protected void transform(Source source, Result result) throws TransformerException {
|
protected void transform(Source source, Result result) throws TransformerException {
|
||||||
this.transformerFactory.newTransformer().transform(source, result);
|
this.transformerFactory.newTransformer().transform(source, result);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue