Uses of Class
org.springframework.util.MimeType
Packages that use MimeType
Package
Description
Contains a basic abstraction over client/server-side HTTP.
JSON encoder and decoder support.
Provides an encoder and a decoder for
Google Protocol Buffers.
XML encoder and decoder support.
Provides support for message conversion.
Support classes for working with annotated message-handling methods with
non-blocking, reactive contracts.
Support for the RSocket protocol.
Support classes for working with annotated RSocket stream handling methods.
Annotations to declare an RSocket service contract with request methods along
with a proxy factory backed by an
RSocketRequester
.Generic support for simple messaging protocols (like STOMP).
Provides implementations of
Message
along with
a MessageBuilder and MessageHeaderAccessor for building and working with messages and
message headers, as well as various MessageChannel
implementations and channel interceptor support.Miscellaneous utility classes, such as utilities for working with strings,
classes, collections, reflection, etc.
-
Uses of MimeType in org.springframework.core.codec
Methods in org.springframework.core.codec that return types with arguments of type MimeTypeModifier and TypeMethodDescriptionAbstractDecoder.getDecodableMimeTypes()
Decoder.getDecodableMimeTypes()
Return the list of MIME types supported by this Decoder.Decoder.getDecodableMimeTypes
(ResolvableType targetType) Return the list of MIME types supported by this Decoder for the given type of element.AbstractEncoder.getEncodableMimeTypes()
Encoder.getEncodableMimeTypes()
Return the list of MIME types supported by this Encoder.Encoder.getEncodableMimeTypes
(ResolvableType elementType) Return the list of MIME types supported by this Encoder for the given type of element.Methods in org.springframework.core.codec with parameters of type MimeTypeModifier and TypeMethodDescriptionboolean
AbstractDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
ByteArrayDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
ByteBufferDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
DataBufferDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
Decoder.canDecode
(ResolvableType elementType, MimeType mimeType) Whether the decoder supports the given target element type and the MIME type of the source stream.boolean
Netty5BufferDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
NettyByteBufDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
ResourceDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
StringDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
AbstractEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
ByteArrayEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
ByteBufferEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
CharSequenceEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
DataBufferEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
Encoder.canEncode
(ResolvableType elementType, MimeType mimeType) Whether the encoder supports the given source element type and the MIME type for the output stream.boolean
Netty5BufferEncoder.canEncode
(ResolvableType type, MimeType mimeType) boolean
NettyByteBufEncoder.canEncode
(ResolvableType type, MimeType mimeType) boolean
ResourceEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
ResourceRegionEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) reactor.core.publisher.Flux<T>
AbstractDataBufferDecoder.decode
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) byte[]
ByteArrayDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ByteBufferDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
DataBufferDecoder.decode
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) DataBufferDecoder.decode
(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<T>
Decoder.decode
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBuffer
input stream into a Flux ofT
.default T
Decoder.decode
(DataBuffer buffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) Decode a data buffer to an Object of type T.io.netty5.buffer.Buffer
Netty5BufferDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) io.netty.buffer.ByteBuf
NettyByteBufDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<Resource>
ResourceDecoder.decode
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ResourceDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<String>
StringDecoder.decode
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) StringDecoder.decode
(DataBuffer dataBuffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) protected T
AbstractDataBufferDecoder.decodeDataBuffer
(DataBuffer buffer, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Deprecated.reactor.core.publisher.Mono<T>
AbstractDataBufferDecoder.decodeToMono
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<T>
AbstractDecoder.decodeToMono
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<T>
Decoder.decodeToMono
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Decode aDataBuffer
input stream into a Mono ofT
.final reactor.core.publisher.Flux<DataBuffer>
AbstractSingleValueEncoder.encode
(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) protected abstract reactor.core.publisher.Flux<DataBuffer>
AbstractSingleValueEncoder.encode
(T t, DataBufferFactory dataBufferFactory, ResolvableType type, MimeType mimeType, Map<String, Object> hints) EncodeT
to an outputDataBuffer
stream.reactor.core.publisher.Flux<DataBuffer>
ByteArrayEncoder.encode
(Publisher<? extends byte[]> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
ByteBufferEncoder.encode
(Publisher<? extends ByteBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
CharSequenceEncoder.encode
(Publisher<? extends CharSequence> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
DataBufferEncoder.encode
(Publisher<? extends DataBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
Encoder.encode
(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Encode a stream of Objects of typeT
into aDataBuffer
output stream.reactor.core.publisher.Flux<DataBuffer>
Netty5BufferEncoder.encode
(Publisher<? extends io.netty5.buffer.Buffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
NettyByteBufEncoder.encode
(Publisher<? extends io.netty.buffer.ByteBuf> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) protected reactor.core.publisher.Flux<DataBuffer>
ResourceEncoder.encode
(Resource resource, DataBufferFactory bufferFactory, ResolvableType type, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
ResourceRegionEncoder.encode
(Publisher<? extends ResourceRegion> input, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ByteArrayEncoder.encodeValue
(byte[] bytes, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) ByteBufferEncoder.encodeValue
(ByteBuffer byteBuffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) CharSequenceEncoder.encodeValue
(CharSequence charSequence, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) DataBufferEncoder.encodeValue
(DataBuffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) default DataBuffer
Encoder.encodeValue
(T value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Encode an Object of type T to a data buffer.Netty5BufferEncoder.encodeValue
(io.netty5.buffer.Buffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) NettyByteBufEncoder.encodeValue
(io.netty.buffer.ByteBuf byteBuf, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Constructors in org.springframework.core.codec with parameters of type MimeTypeModifierConstructorDescriptionprotected
AbstractDataBufferDecoder
(MimeType... supportedMimeTypes) protected
AbstractDecoder
(MimeType... supportedMimeTypes) protected
AbstractEncoder
(MimeType... supportedMimeTypes) AbstractSingleValueEncoder
(MimeType... supportedMimeTypes) -
Uses of MimeType in org.springframework.http
Subclasses of MimeType in org.springframework.httpModifier and TypeClassDescriptionclass
A subclass ofMimeType
that adds support for quality parameters as defined in the HTTP specification.Methods in org.springframework.http with parameters of type MimeTypeModifier and TypeMethodDescriptionstatic MediaType
MediaType.asMediaType
(MimeType mimeType) Re-create the given mime type as a media type.boolean
MediaType.isLessSpecific
(MimeType other) Indicates whether thisMediaType
more specific than the given type.boolean
MediaType.isMoreSpecific
(MimeType other) Indicates whether thisMediaType
more specific than the given type.Method parameters in org.springframework.http with type arguments of type MimeTypeModifier and TypeMethodDescriptionMediaType.asMediaTypes
(List<MimeType> mimeTypes) Re-create the given mime types as media types.Constructors in org.springframework.http with parameters of type MimeType -
Uses of MimeType in org.springframework.http.codec
Methods in org.springframework.http.codec that return types with arguments of type MimeTypeModifier and TypeMethodDescriptionKotlinSerializationBinaryDecoder.getDecodableMimeTypes()
KotlinSerializationBinaryDecoder.getDecodableMimeTypes
(ResolvableType targetType) KotlinSerializationStringDecoder.getDecodableMimeTypes()
KotlinSerializationStringDecoder.getDecodableMimeTypes
(ResolvableType targetType) KotlinSerializationBinaryEncoder.getEncodableMimeTypes()
KotlinSerializationBinaryEncoder.getEncodableMimeTypes
(ResolvableType elementType) KotlinSerializationStringEncoder.getEncodableMimeTypes()
KotlinSerializationStringEncoder.getEncodableMimeTypes
(ResolvableType elementType) KotlinSerializationSupport.supportedMimeTypes()
Returns the supported mime types.Methods in org.springframework.http.codec with parameters of type MimeTypeModifier and TypeMethodDescriptionboolean
KotlinSerializationBinaryDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
KotlinSerializationStringDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
KotlinSerializationBinaryEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) boolean
KotlinSerializationStringEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) protected final boolean
KotlinSerializationSupport.canSerialize
(ResolvableType type, MimeType mimeType) Indicates whether the given type can be serialized using Kotlin serialization.reactor.core.publisher.Flux<Object>
KotlinSerializationBinaryDecoder.decode
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<Object>
KotlinSerializationStringDecoder.decode
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<Object>
KotlinSerializationBinaryDecoder.decodeToMono
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<Object>
KotlinSerializationStringDecoder.decodeToMono
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
KotlinSerializationBinaryEncoder.encode
(Publisher<?> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
KotlinSerializationStringEncoder.encode
(Publisher<?> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) KotlinSerializationBinaryEncoder.encodeValue
(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) KotlinSerializationStringEncoder.encodeValue
(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Constructors in org.springframework.http.codec with parameters of type MimeTypeModifierConstructorDescriptionKotlinSerializationBinaryDecoder
(T format, MimeType... supportedMimeTypes) protected
KotlinSerializationBinaryEncoder
(T format, MimeType... supportedMimeTypes) KotlinSerializationStringDecoder
(T format, MimeType... supportedMimeTypes) protected
KotlinSerializationStringEncoder
(T format, MimeType... supportedMimeTypes) protected
KotlinSerializationSupport
(T format, MimeType... supportedMimeTypes) Creates a new instance of this support class with the given format and supported mime types. -
Uses of MimeType in org.springframework.http.codec.cbor
Methods in org.springframework.http.codec.cbor with parameters of type MimeTypeModifier and TypeMethodDescriptionreactor.core.publisher.Flux<Object>
Jackson2CborDecoder.decode
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
Jackson2CborEncoder.encode
(Publisher<?> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Constructors in org.springframework.http.codec.cbor with parameters of type MimeTypeModifierConstructorDescriptionJackson2CborDecoder
(ObjectMapper mapper, MimeType... mimeTypes) Jackson2CborEncoder
(ObjectMapper mapper, MimeType... mimeTypes) -
Uses of MimeType in org.springframework.http.codec.json
Methods in org.springframework.http.codec.json that return types with arguments of type MimeTypeModifier and TypeMethodDescriptionAbstractJackson2Decoder.getDecodableMimeTypes()
AbstractJackson2Decoder.getDecodableMimeTypes
(ResolvableType targetType) AbstractJackson2Encoder.getEncodableMimeTypes()
AbstractJackson2Encoder.getEncodableMimeTypes
(ResolvableType elementType) Jackson2CodecSupport.getMediaTypesForProblemDetail()
Return the supported media type(s) forProblemDetail
.Jackson2JsonEncoder.getMediaTypesForProblemDetail()
Jackson2CodecSupport.getMimeTypes()
Subclasses should expose this as "decodable" or "encodable" mime types.Jackson2CodecSupport.getMimeTypes
(ResolvableType elementType) protected Map<Class<?>,
Map<MimeType, ObjectMapper>> Jackson2CodecSupport.getObjectMapperRegistrations()
Jackson2CodecSupport.getObjectMappersForType
(Class<?> clazz) Return ObjectMapper registrations for the given class, if any.Methods in org.springframework.http.codec.json with parameters of type MimeTypeModifier and TypeMethodDescriptionboolean
AbstractJackson2Decoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
AbstractJackson2Encoder.canEncode
(ResolvableType elementType, MimeType mimeType) protected ObjectWriter
AbstractJackson2Encoder.customizeWriter
(ObjectWriter writer, MimeType mimeType, ResolvableType elementType, Map<String, Object> hints) Subclasses can use this method to customize theObjectWriter
used for writing values.protected ObjectWriter
Jackson2JsonEncoder.customizeWriter
(ObjectWriter writer, MimeType mimeType, ResolvableType elementType, Map<String, Object> hints) reactor.core.publisher.Flux<Object>
AbstractJackson2Decoder.decode
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) AbstractJackson2Decoder.decode
(DataBuffer dataBuffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<Object>
AbstractJackson2Decoder.decodeToMono
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
AbstractJackson2Encoder.encode
(Publisher<?> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) AbstractJackson2Encoder.encodeValue
(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) protected JsonEncoding
AbstractJackson2Encoder.getJsonEncoding
(MimeType mimeType) Determine the JSON encoding to use for the given mime type.protected byte[]
AbstractJackson2Encoder.getStreamingMediaTypeSeparator
(MimeType mimeType) Return the separator to use for the given mime type.protected byte[]
Jackson2SmileEncoder.getStreamingMediaTypeSeparator
(MimeType mimeType) Return the separator to use for the given mime type.protected reactor.core.publisher.Flux<DataBuffer>
AbstractJackson2Decoder.processInput
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Process the input publisher into a flux.protected reactor.core.publisher.Flux<DataBuffer>
Jackson2JsonDecoder.processInput
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) protected ObjectMapper
Jackson2CodecSupport.selectObjectMapper
(ResolvableType targetType, MimeType targetMimeType) Select an ObjectMapper to use, either the main ObjectMapper or another if the handling for the given Class has been customized throughJackson2CodecSupport.registerObjectMappersForType(Class, Consumer)
.protected boolean
Jackson2CodecSupport.supportsMimeType
(MimeType mimeType) Method parameters in org.springframework.http.codec.json with type arguments of type MimeTypeModifier and TypeMethodDescriptionvoid
Jackson2CodecSupport.registerObjectMappersForType
(Class<?> clazz, Consumer<Map<MimeType, ObjectMapper>> registrar) Configure theObjectMapper
instances to use for the givenClass
.Constructors in org.springframework.http.codec.json with parameters of type MimeTypeModifierConstructorDescriptionprotected
AbstractJackson2Decoder
(ObjectMapper mapper, MimeType... mimeTypes) Constructor with a JacksonObjectMapper
to use.protected
AbstractJackson2Encoder
(ObjectMapper mapper, MimeType... mimeTypes) Constructor with a JacksonObjectMapper
to use.protected
Jackson2CodecSupport
(ObjectMapper objectMapper, MimeType... mimeTypes) Constructor with a JacksonObjectMapper
to use.Jackson2JsonDecoder
(ObjectMapper mapper, MimeType... mimeTypes) Jackson2JsonEncoder
(ObjectMapper mapper, MimeType... mimeTypes) Jackson2SmileDecoder
(ObjectMapper mapper, MimeType... mimeTypes) Jackson2SmileEncoder
(ObjectMapper mapper, MimeType... mimeTypes) -
Uses of MimeType in org.springframework.http.codec.protobuf
Methods in org.springframework.http.codec.protobuf that return types with arguments of type MimeTypeModifier and TypeMethodDescriptionProtobufDecoder.getDecodableMimeTypes()
ProtobufEncoder.getEncodableMimeTypes()
ProtobufCodecSupport.getMimeTypes()
Methods in org.springframework.http.codec.protobuf with parameters of type MimeTypeModifier and TypeMethodDescriptionboolean
ProtobufDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
ProtobufEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) reactor.core.publisher.Flux<com.google.protobuf.Message>
ProtobufDecoder.decode
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) com.google.protobuf.Message
ProtobufDecoder.decode
(DataBuffer dataBuffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<com.google.protobuf.Message>
ProtobufDecoder.decodeToMono
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<DataBuffer>
ProtobufEncoder.encode
(Publisher<? extends com.google.protobuf.Message> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) ProtobufEncoder.encodeValue
(com.google.protobuf.Message message, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) protected boolean
ProtobufCodecSupport.supportsMimeType
(MimeType mimeType) -
Uses of MimeType in org.springframework.http.codec.xml
Methods in org.springframework.http.codec.xml with parameters of type MimeTypeModifier and TypeMethodDescriptionboolean
Jaxb2XmlDecoder.canDecode
(ResolvableType elementType, MimeType mimeType) boolean
Jaxb2XmlEncoder.canEncode
(ResolvableType elementType, MimeType mimeType) reactor.core.publisher.Flux<Object>
Jaxb2XmlDecoder.decode
(Publisher<DataBuffer> inputStream, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) Jaxb2XmlDecoder.decode
(DataBuffer dataBuffer, ResolvableType targetType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Flux<XMLEvent>
XmlEventDecoder.decode
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) reactor.core.publisher.Mono<Object>
Jaxb2XmlDecoder.decodeToMono
(Publisher<DataBuffer> input, ResolvableType elementType, MimeType mimeType, Map<String, Object> hints) protected reactor.core.publisher.Flux<DataBuffer>
Jaxb2XmlEncoder.encode
(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Jaxb2XmlEncoder.encodeValue
(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, MimeType mimeType, Map<String, Object> hints) Constructors in org.springframework.http.codec.xml with parameters of type MimeTypeModifierConstructorDescriptionJaxb2XmlDecoder
(MimeType... supportedMimeTypes) Create aJaxb2XmlDecoder
with the specified MIME types. -
Uses of MimeType in org.springframework.messaging.converter
Fields in org.springframework.messaging.converter declared as MimeTypeModifier and TypeFieldDescriptionstatic final MimeType
ProtobufMessageConverter.PROTOBUF
The mime-type for protobufapplication/x-protobuf
.Methods in org.springframework.messaging.converter that return MimeTypeModifier and TypeMethodDescriptionprotected MimeType
AbstractMessageConverter.getDefaultContentType
(Object payload) Return the default content type for the payload.DefaultContentTypeResolver.getDefaultMimeType()
Return the default MIME type to use if noMessageHeaders.CONTENT_TYPE
header is present.protected MimeType
AbstractMessageConverter.getMimeType
(MessageHeaders headers) ContentTypeResolver.resolve
(MessageHeaders headers) Determine theMimeType
of a message from the given MessageHeaders.DefaultContentTypeResolver.resolve
(MessageHeaders headers) Methods in org.springframework.messaging.converter that return types with arguments of type MimeTypeModifier and TypeMethodDescriptionAbstractMessageConverter.getSupportedMimeTypes()
Return the supported MIME types.Methods in org.springframework.messaging.converter with parameters of type MimeTypeModifier and TypeMethodDescriptionprotected void
AbstractMessageConverter.addSupportedMimeTypes
(MimeType... supportedMimeTypes) Allows subclasses to add more supported mime types.protected JsonEncoding
MappingJackson2MessageConverter.getJsonEncoding
(MimeType contentType) Determine the JSON encoding to use for the given content type.void
DefaultContentTypeResolver.setDefaultMimeType
(MimeType defaultMimeType) Set the default MIME type to use when there is noMessageHeaders.CONTENT_TYPE
header present.Constructors in org.springframework.messaging.converter with parameters of type MimeTypeModifierConstructorDescriptionprotected
AbstractMessageConverter
(MimeType supportedMimeType) Constructor with a single MIME type.protected
AbstractMessageConverter
(MimeType... supportedMimeTypes) Constructor with one or more MIME types via vararg.MappingJackson2MessageConverter
(MimeType... supportedMimeTypes) Construct aMappingJackson2MessageConverter
supporting one or more custom MIME types.MarshallingMessageConverter
(MimeType... supportedMimeTypes) Constructor with a given list of MIME types to support.Constructor parameters in org.springframework.messaging.converter with type arguments of type MimeTypeModifierConstructorDescriptionprotected
AbstractMessageConverter
(Collection<MimeType> supportedMimeTypes) Constructor with a Collection of MIME types. -
Uses of MimeType in org.springframework.messaging.handler.annotation.reactive
Methods in org.springframework.messaging.handler.annotation.reactive that return MimeTypeModifier and TypeMethodDescriptionprotected MimeType
PayloadMethodArgumentResolver.getMimeType
(Message<?> message) Return the mime type for the content. -
Uses of MimeType in org.springframework.messaging.rsocket
Methods in org.springframework.messaging.rsocket that return MimeTypeModifier and TypeMethodDescriptionRSocketRequester.dataMimeType()
Return the dataMimeType
selected for the underlying RSocket at connection time.RSocketRequester.metadataMimeType()
Return the metadataMimeType
selected for the underlying RSocket at connection time.Methods in org.springframework.messaging.rsocket with parameters of type MimeTypeModifier and TypeMethodDescriptionRSocketRequester.Builder.dataMimeType
(MimeType mimeType) Configure the payload data MimeType to specify on theSETUP
frame that applies to the whole connection.default <T> Decoder<T>
RSocketStrategies.decoder
(ResolvableType elementType, MimeType mimeType) Find a compatible Decoder for the given element type.default <T> Encoder<T>
RSocketStrategies.encoder
(ResolvableType elementType, MimeType mimeType) Find a compatible Encoder for the given element type.Extract a map of values from the givenPayload
metadata.Begin to specify a new request with the given metadata value, which can be a concrete value or any producer of a single value that can be adapted to aPublisher
viaReactiveAdapterRegistry
.Use this to append additional metadata entries when using composite metadata.RSocketRequester.Builder.metadataMimeType
(MimeType mimeType) Configure the payload metadata MimeType to specify on theSETUP
frame that applies to the whole connection.<T> void
DefaultMetadataExtractor.metadataToExtract
(MimeType mimeType, Class<T> targetType, BiConsumer<T, Map<String, Object>> mapper) <T> void
DefaultMetadataExtractor.metadataToExtract
(MimeType mimeType, ParameterizedTypeReference<T> type, BiConsumer<T, Map<String, Object>> mapper) default void
MetadataExtractorRegistry.metadataToExtract
(MimeType mimeType, Class<?> targetType, String name) Decode metadata entries with the givenMimeType
to the specified target class, and store the decoded value in the output map under the given name.<T> void
MetadataExtractorRegistry.metadataToExtract
(MimeType mimeType, Class<T> targetType, BiConsumer<T, Map<String, Object>> mapper) Variant ofMetadataExtractorRegistry.metadataToExtract(MimeType, Class, String)
that allows custom logic to be used to map the decoded value to any number of values in the output map.default void
MetadataExtractorRegistry.metadataToExtract
(MimeType mimeType, ParameterizedTypeReference<?> targetType, String name) Variant ofMetadataExtractorRegistry.metadataToExtract(MimeType, Class, String)
that acceptsParameterizedTypeReference
instead ofClass
for specifying a target type with generic parameters.<T> void
MetadataExtractorRegistry.metadataToExtract
(MimeType mimeType, ParameterizedTypeReference<T> type, BiConsumer<T, Map<String, Object>> mapper) Variant ofMetadataExtractorRegistry.metadataToExtract(MimeType, Class, BiConsumer)
that acceptsParameterizedTypeReference
instead ofClass
for specifying a target type with generic parameters.RSocketRequester.Builder.setupMetadata
(Object value, MimeType mimeType) Add metadata entry to the setup payload.static RSocketRequester
RSocketRequester.wrap
(RSocket rsocket, MimeType dataMimeType, MimeType metadataMimeType, RSocketStrategies strategies) Wrap an existingRSocket
. -
Uses of MimeType in org.springframework.messaging.rsocket.annotation.support
Methods in org.springframework.messaging.rsocket.annotation.support that return MimeTypeModifier and TypeMethodDescriptionRSocketMessageHandler.getDefaultDataMimeType()
Return the configureddefaultDataMimeType
, ornull
.RSocketMessageHandler.getDefaultMetadataMimeType()
Return the configureddefaultMetadataMimeType
.Methods in org.springframework.messaging.rsocket.annotation.support with parameters of type MimeTypeModifier and TypeMethodDescriptionvoid
RSocketMessageHandler.setDefaultDataMimeType
(MimeType mimeType) Configure the default content type to use for data payloads if theSETUP
frame did not specify one.void
RSocketMessageHandler.setDefaultMetadataMimeType
(MimeType mimeType) Configure the defaultMimeType
for payload data if theSETUP
frame did not specify one. -
Uses of MimeType in org.springframework.messaging.rsocket.service
Methods in org.springframework.messaging.rsocket.service that return types with arguments of type MimeTypeModifier and TypeMethodDescriptionRSocketRequestValues.getMetadata()
Return the metadata entries forRSocketRequester.MetadataSpec.metadata(Object, MimeType)
.Methods in org.springframework.messaging.rsocket.service with parameters of type MimeTypeModifier and TypeMethodDescriptionRSocketRequestValues.Builder.addMimeType
(MimeType mimeType) Set the mime type for a metadata entry. -
Uses of MimeType in org.springframework.messaging.simp.stomp
Methods in org.springframework.messaging.simp.stomp that return MimeTypeModifier and TypeMethodDescriptionStompHeaders.getContentType()
Return the content-type header value.Methods in org.springframework.messaging.simp.stomp with parameters of type MimeTypeModifier and TypeMethodDescriptionvoid
StompHeaderAccessor.setContentType
(MimeType contentType) void
StompHeaders.setContentType
(MimeType mimeType) Set the content-type header. -
Uses of MimeType in org.springframework.messaging.support
Methods in org.springframework.messaging.support that return MimeTypeMethods in org.springframework.messaging.support with parameters of type MimeTypeModifier and TypeMethodDescriptionvoid
MessageHeaderAccessor.setContentType
(MimeType contentType) -
Uses of MimeType in org.springframework.util
Classes in org.springframework.util with type parameters of type MimeTypeModifier and TypeClassDescriptionstatic class
MimeType.SpecificityComparator<T extends MimeType>
Deprecated, for removal: This API element is subject to removal in a future version.As of 6.0, with no direct replacementFields in org.springframework.util declared as MimeTypeModifier and TypeFieldDescriptionstatic final MimeType
MimeTypeUtils.ALL
Public constant mime type that includes all media ranges (i.e.static final MimeType
MimeTypeUtils.APPLICATION_GRAPHQL
Public constant mime type forapplication/graphql+json
.static final MimeType
MimeTypeUtils.APPLICATION_JSON
Public constant mime type forapplication/json
.static final MimeType
MimeTypeUtils.APPLICATION_OCTET_STREAM
Public constant mime type forapplication/octet-stream
.static final MimeType
MimeTypeUtils.APPLICATION_XML
Public constant mime type forapplication/xml
.static final MimeType
MimeTypeUtils.IMAGE_GIF
Public constant mime type forimage/gif
.static final MimeType
MimeTypeUtils.IMAGE_JPEG
Public constant mime type forimage/jpeg
.static final MimeType
MimeTypeUtils.IMAGE_PNG
Public constant mime type forimage/png
.static final MimeType
MimeTypeUtils.TEXT_HTML
Public constant mime type fortext/html
.static final MimeType
MimeTypeUtils.TEXT_PLAIN
Public constant mime type fortext/plain
.static final MimeType
MimeTypeUtils.TEXT_XML
Public constant mime type fortext/xml
.Fields in org.springframework.util with type parameters of type MimeTypeModifier and TypeFieldDescriptionstatic final Comparator<MimeType>
MimeTypeUtils.SPECIFICITY_COMPARATOR
Deprecated, for removal: This API element is subject to removal in a future version.As of 6.0, with no direct replacementMethods in org.springframework.util with type parameters of type MimeTypeModifier and TypeMethodDescriptionstatic <T extends MimeType>
voidMimeTypeUtils.sortBySpecificity
(List<T> mimeTypes) Sorts the given list ofMimeType
objects by specificity.Methods in org.springframework.util that return MimeTypeModifier and TypeMethodDescriptionstatic MimeType
MimeTypeUtils.parseMimeType
(String mimeType) Parse the given String into a singleMimeType
.static MimeType
Parse the given String value into aMimeType
object, with this method name following the 'valueOf' naming convention (as supported byConversionService
.Methods in org.springframework.util that return types with arguments of type MimeTypeModifier and TypeMethodDescriptionMimeTypeUtils.parseMimeTypes
(String mimeTypes) Parse the comma-separated string into a mutable list ofMimeType
objects.Methods in org.springframework.util with parameters of type MimeTypeModifier and TypeMethodDescriptionint
Compares this MIME Type to another alphabetically.boolean
MimeType.equalsTypeAndSubtype
(MimeType other) Similar toequals(Object)
but based on the type and subtype only, i.e.boolean
Indicate whether this MIME Type includes the given MIME Type.boolean
MimeType.isCompatibleWith
(MimeType other) Indicate whether this MIME Type is compatible with the given MIME Type.boolean
MimeType.isLessSpecific
(MimeType other) Indicates whether thisMimeType
is more less than the given type.boolean
MimeType.isMoreSpecific
(MimeType other) Indicates whether thisMimeType
is more specific than the given type.Method parameters in org.springframework.util with type arguments of type MimeTypeModifier and TypeMethodDescriptionboolean
MimeType.isPresentIn
(Collection<? extends MimeType> mimeTypes) UnlikeCollection.contains(Object)
which relies onequals(Object)
, this method only checks the type and the subtype, but otherwise ignores parameters.static String
MimeTypeUtils.toString
(Collection<? extends MimeType> mimeTypes) Return a string representation of the given list ofMimeType
objects.Constructors in org.springframework.util with parameters of type MimeTypeModifierConstructorDescriptionprotected
Copy-constructor that copies the type, subtype and parameters of the givenMimeType
, skipping checks performed in other constructors.Copy-constructor that copies the type, subtype, parameters of the givenMimeType
, and allows to set the specified character set.Copy-constructor that copies the type and subtype of the givenMimeType
, and allows for different parameter.
Decoder.decode(DataBuffer, ResolvableType, MimeType, Map)
instead