Java Code Examples for org.springframework.util.MimeTypeUtils#TEXT_XML
The following examples show how to use
org.springframework.util.MimeTypeUtils#TEXT_XML .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: EncoderHttpMessageWriterTests.java From spring-analysis-note with MIT License | 5 votes |
private void testDefaultMediaType(MediaType negotiatedMediaType) { this.mediaTypeCaptor = ArgumentCaptor.forClass(MediaType.class); MimeType defaultContentType = MimeTypeUtils.TEXT_XML; HttpMessageWriter<String> writer = getWriter(defaultContentType); writer.write(Mono.just("body"), forClass(String.class), negotiatedMediaType, this.response, NO_HINTS); assertEquals(defaultContentType, this.response.getHeaders().getContentType()); assertEquals(defaultContentType, this.mediaTypeCaptor.getValue()); }
Example 2
Source File: EncoderHttpMessageWriterTests.java From java-technology-stack with MIT License | 5 votes |
private void testDefaultMediaType(MediaType negotiatedMediaType) { this.mediaTypeCaptor = ArgumentCaptor.forClass(MediaType.class); MimeType defaultContentType = MimeTypeUtils.TEXT_XML; HttpMessageWriter<String> writer = getWriter(defaultContentType); writer.write(Mono.just("body"), forClass(String.class), negotiatedMediaType, this.response, NO_HINTS); assertEquals(defaultContentType, this.response.getHeaders().getContentType()); assertEquals(defaultContentType, this.mediaTypeCaptor.getValue()); }
Example 3
Source File: Jaxb2XmlEncoder.java From spring-analysis-note with MIT License | 4 votes |
public Jaxb2XmlEncoder() { super(MimeTypeUtils.APPLICATION_XML, MimeTypeUtils.TEXT_XML); }
Example 4
Source File: XmlEventDecoder.java From spring-analysis-note with MIT License | 4 votes |
public XmlEventDecoder() { super(MimeTypeUtils.APPLICATION_XML, MimeTypeUtils.TEXT_XML); }
Example 5
Source File: Jaxb2XmlDecoder.java From spring-analysis-note with MIT License | 4 votes |
public Jaxb2XmlDecoder() { super(MimeTypeUtils.APPLICATION_XML, MimeTypeUtils.TEXT_XML); }
Example 6
Source File: Jaxb2XmlEncoder.java From java-technology-stack with MIT License | 4 votes |
public Jaxb2XmlEncoder() { super(MimeTypeUtils.APPLICATION_XML, MimeTypeUtils.TEXT_XML); }
Example 7
Source File: XmlEventDecoder.java From java-technology-stack with MIT License | 4 votes |
public XmlEventDecoder() { super(MimeTypeUtils.APPLICATION_XML, MimeTypeUtils.TEXT_XML); }
Example 8
Source File: Jaxb2XmlDecoder.java From java-technology-stack with MIT License | 4 votes |
public Jaxb2XmlDecoder() { super(MimeTypeUtils.APPLICATION_XML, MimeTypeUtils.TEXT_XML); }