org.springframework.web.servlet.mvc.method.annotation

Class ResponseBodyEmitter.DataWithMediaType

  • java.lang.Object
    • org.springframework.web.servlet.mvc.method.annotation.ResponseBodyEmitter.DataWithMediaType
  • Enclosing class:
    ResponseBodyEmitter


    public static class ResponseBodyEmitter.DataWithMediaType
    extends java.lang.Object
    A simple holder of data to be written along with a MediaType hint for selecting a message converter to write with.
    • Constructor Detail

      • DataWithMediaType

        public DataWithMediaType(java.lang.Object data,
                                 @Nullable
                                 MediaType mediaType)
    • Method Detail

      • getData

        public java.lang.Object getData()