Class ResponseBodyEmitter.DataWithMediaType

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

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

    • DataWithMediaType

      public DataWithMediaType(Object data, @Nullable org.springframework.http.MediaType mediaType)
  • Method Details

    • getData

      public Object getData()
    • getMediaType

      @Nullable public org.springframework.http.MediaType getMediaType()