类 HttpMediaTypeNotSupportedException

    • 构造器详细资料

      • HttpMediaTypeNotSupportedException

        public HttpMediaTypeNotSupportedException​(MediaType contentType,
                                                  List<MediaType> supportedMediaTypes)
        Create a new HttpMediaTypeNotSupportedException.
        参数:
        contentType - the unsupported content type
        supportedMediaTypes - the list of supported media types
      • HttpMediaTypeNotSupportedException

        public HttpMediaTypeNotSupportedException​(MediaType contentType,
                                                  List<MediaType> supportedMediaTypes,
                                                  String msg)
        Create a new HttpMediaTypeNotSupportedException.
        参数:
        contentType - the unsupported content type
        supportedMediaTypes - the list of supported media types
        msg - the detail message
    • 方法详细资料

      • getContentType

        public MediaType getContentType()
        Return the HTTP request content type method that caused the failure.