Uses of Class
org.springframework.util.MimeType
Packages that use MimeType
Package
Description
Contains a basic abstraction over client/server-side HTTP.
CBOR encoder and decoder support.
JSON encoder and decoder support.
Provides an encoder and a decoder for
Google Protocol Buffers.
Provides an encoder and a decoder for the Smile data format ("binary JSON").
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 TypeMethodDescriptionbooleanAbstractDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanByteArrayDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanByteBufferDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanCharBufferDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanDataBufferDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) Whether the decoder supports the given target element type and the MIME type of the source stream.booleanNettyByteBufDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanResourceDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanStringDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanAbstractEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) booleanByteArrayEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) booleanByteBufferEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) booleanCharSequenceEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) booleanDataBufferEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) booleanEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) Whether the encoder supports the given source element type and the MIME type for the output stream.booleanNettyByteBufEncoder.canEncode(ResolvableType type, @Nullable MimeType mimeType) booleanResourceEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) booleanResourceRegionEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) AbstractCharSequenceDecoder.decode(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) final TAbstractCharSequenceDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) AbstractDataBufferDecoder.decode(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) byte[]ByteArrayDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) ByteBufferDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) DataBufferDecoder.decode(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) DataBufferDecoder.decode(DataBuffer buffer, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Decoder.decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Decode aDataBufferinput stream into a Flux ofT.Decoder.decode(DataBuffer buffer, ResolvableType targetType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Decode a data buffer to an Object of type T.io.netty.buffer.ByteBufNettyByteBufDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) ResourceDecoder.decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) ResourceDecoder.decode(DataBuffer dataBuffer, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) AbstractDataBufferDecoder.decodeDataBuffer(DataBuffer buffer, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Deprecated.AbstractDataBufferDecoder.decodeToMono(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) AbstractDecoder.decodeToMono(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Decoder.decodeToMono(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Decode aDataBufferinput stream into a Mono ofT.final Flux<DataBuffer> AbstractSingleValueEncoder.encode(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) protected abstract Flux<DataBuffer> AbstractSingleValueEncoder.encode(T t, DataBufferFactory dataBufferFactory, ResolvableType type, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) EncodeTto an outputDataBufferstream.ByteArrayEncoder.encode(Publisher<? extends byte[]> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) ByteBufferEncoder.encode(Publisher<? extends ByteBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) CharSequenceEncoder.encode(Publisher<? extends CharSequence> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) DataBufferEncoder.encode(Publisher<? extends DataBuffer> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Encoder.encode(Publisher<? extends T> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Encode a stream of Objects of typeTinto aDataBufferoutput stream.NettyByteBufEncoder.encode(Publisher<? extends io.netty.buffer.ByteBuf> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) protected Flux<DataBuffer> ResourceEncoder.encode(Resource resource, DataBufferFactory bufferFactory, ResolvableType type, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) ResourceRegionEncoder.encode(Publisher<? extends ResourceRegion> input, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) ByteArrayEncoder.encodeValue(byte[] bytes, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) ByteBufferEncoder.encodeValue(ByteBuffer byteBuffer, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) CharSequenceEncoder.encodeValue(CharSequence charSequence, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) DataBufferEncoder.encodeValue(DataBuffer buffer, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) default DataBufferEncoder.encodeValue(T value, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Encode an Object of type T to a data buffer.NettyByteBufEncoder.encodeValue(io.netty.buffer.ByteBuf byteBuf, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Constructors in org.springframework.core.codec with parameters of type MimeTypeModifierConstructorDescriptionprotectedAbstractCharSequenceDecoder(List<String> delimiters, boolean stripDelimiter, MimeType... mimeTypes) Create a newAbstractCharSequenceDecoderwith the given parameters.protectedAbstractDataBufferDecoder(MimeType... supportedMimeTypes) protectedAbstractDecoder(MimeType... supportedMimeTypes) protectedAbstractEncoder(MimeType... supportedMimeTypes) AbstractSingleValueEncoder(MimeType... supportedMimeTypes) CharBufferDecoder(List<String> delimiters, boolean stripDelimiter, MimeType... mimeTypes) -
Uses of MimeType in org.springframework.http
Subclasses of MimeType in org.springframework.httpModifier and TypeClassDescriptionclassA subclass ofMimeTypethat adds support for quality parameters as defined in the HTTP specification.Methods in org.springframework.http with parameters of type MimeTypeModifier and TypeMethodDescriptionstatic MediaTypeMediaType.asMediaType(MimeType mimeType) Re-create the given mime type as a media type.booleanMediaType.isLessSpecific(MimeType other) Indicates whether thisMediaTypemore specific than the given type.booleanMediaType.isMoreSpecific(MimeType other) Indicates whether thisMediaTypemore 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
Fields in org.springframework.http.codec with type parameters of type MimeTypeMethods in org.springframework.http.codec that return types with arguments of type MimeTypeModifier and TypeMethodDescriptionAbstractJacksonDecoder.getDecodableMimeTypes()AbstractJacksonDecoder.getDecodableMimeTypes(ResolvableType targetType) KotlinSerializationBinaryDecoder.getDecodableMimeTypes()KotlinSerializationBinaryDecoder.getDecodableMimeTypes(ResolvableType targetType) KotlinSerializationStringDecoder.getDecodableMimeTypes()KotlinSerializationStringDecoder.getDecodableMimeTypes(ResolvableType targetType) AbstractJacksonEncoder.getEncodableMimeTypes()AbstractJacksonEncoder.getEncodableMimeTypes(ResolvableType elementType) KotlinSerializationBinaryEncoder.getEncodableMimeTypes()KotlinSerializationBinaryEncoder.getEncodableMimeTypes(ResolvableType elementType) KotlinSerializationStringEncoder.getEncodableMimeTypes()KotlinSerializationStringEncoder.getEncodableMimeTypes(ResolvableType elementType) JacksonCodecSupport.getMapperRegistrations()JacksonCodecSupport.getMappersForType(Class<?> clazz) Return ObjectMapper registrations for the given class, if any.JacksonCodecSupport.getMediaTypesForProblemDetail()Return the supported media type(s) forProblemDetail.JacksonCodecSupport.getMimeTypes()Subclasses should expose this as "decodable" or "encodable" mime types.JacksonCodecSupport.getMimeTypes(ResolvableType elementType) KotlinSerializationSupport.supportedMimeTypes()Returns the supported mime types.Methods in org.springframework.http.codec with parameters of type MimeTypeModifier and TypeMethodDescriptionbooleanAbstractJacksonDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanKotlinSerializationBinaryDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanKotlinSerializationStringDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanAbstractJacksonEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) booleanKotlinSerializationBinaryEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) booleanKotlinSerializationStringEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) protected final booleanKotlinSerializationSupport.canSerialize(ResolvableType type, @Nullable MimeType mimeType) Indicates whether the given type can be serialized using Kotlin serialization.protected tools.jackson.databind.ObjectWriterAbstractJacksonEncoder.customizeWriter(tools.jackson.databind.ObjectWriter writer, @Nullable MimeType mimeType, ResolvableType elementType, @Nullable Map<String, Object> hints) Subclasses can use this method to customize theObjectWriterused for writing values.AbstractJacksonDecoder.decode(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) AbstractJacksonDecoder.decode(DataBuffer dataBuffer, ResolvableType targetType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) KotlinSerializationBinaryDecoder.decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) KotlinSerializationStringDecoder.decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) AbstractJacksonDecoder.decodeToMono(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) KotlinSerializationBinaryDecoder.decodeToMono(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) KotlinSerializationStringDecoder.decodeToMono(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) AbstractJacksonEncoder.encode(Publisher<?> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) KotlinSerializationBinaryEncoder.encode(Publisher<?> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) KotlinSerializationStringEncoder.encode(Publisher<?> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) protected Flux<DataBuffer> KotlinSerializationStringEncoder.encodeNonStream(Publisher<?> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) protected DataBufferKotlinSerializationStringEncoder.encodeStreamingValue(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints, byte[] prefix, byte[] suffix) AbstractJacksonEncoder.encodeValue(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) KotlinSerializationBinaryEncoder.encodeValue(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) KotlinSerializationStringEncoder.encodeValue(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) protected tools.jackson.core.JsonEncodingAbstractJacksonEncoder.getJsonEncoding(@Nullable MimeType mimeType) Determine the JSON encoding to use for the given mime type.protected byte @Nullable []AbstractJacksonEncoder.getStreamingMediaTypeSeparator(@Nullable MimeType mimeType) Return the separator to use for the given mime type.protected Flux<DataBuffer> AbstractJacksonDecoder.processInput(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Process the input publisher into a flux.JacksonCodecSupport.selectMapper(ResolvableType targetType, @Nullable MimeType targetMimeType) Select an ObjectMapper to use, either the main ObjectMapper or another if the handling for the given Class has been customized throughJacksonCodecSupport.registerMappersForType(Class, Consumer).protected booleanJacksonCodecSupport.supportsMimeType(@Nullable MimeType mimeType) Method parameters in org.springframework.http.codec with type arguments of type MimeTypeModifier and TypeMethodDescriptionvoidConfigure theObjectMapperinstances to use for the givenClass.Constructors in org.springframework.http.codec with parameters of type MimeTypeModifierConstructorDescriptionprotectedAbstractJacksonDecoder(tools.jackson.databind.cfg.MapperBuilder<T, ?> builder, MimeType... mimeTypes) Construct a new instance with the providedbuildercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader)andMimeTypes.protectedAbstractJacksonDecoder(T mapper, MimeType... mimeTypes) Construct a new instance with the providedObjectMapperandMimeTypes.protectedAbstractJacksonEncoder(tools.jackson.databind.cfg.MapperBuilder<T, ?> builder, MimeType... mimeTypes) Construct a new instance with the providedbuildercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader)andMimeTypes.protectedAbstractJacksonEncoder(T mapper, MimeType... mimeTypes) Construct a new instance with the providedObjectMapperandMimeTypes.protectedJacksonCodecSupport(tools.jackson.databind.cfg.MapperBuilder<T, ?> builder, MimeType... mimeTypes) Construct a new instance with the providedbuildercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader)andMimeTypes.protectedJacksonCodecSupport(T mapper, MimeType... mimeTypes) Construct a new instance with the providedObjectMappercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader)andMimeTypes.KotlinSerializationBinaryDecoder(T format, Predicate<ResolvableType> typePredicate, MimeType... supportedMimeTypes) Creates a new instance with the given format and supported mime types which only decodes types for which the specified predicate returnstrue.KotlinSerializationBinaryDecoder(T format, MimeType... supportedMimeTypes) Creates a new instance with the given format and supported mime types which only decodes types annotated with@Serializableat type or generics level.protectedKotlinSerializationBinaryEncoder(T format, Predicate<ResolvableType> typePredicate, MimeType... supportedMimeTypes) Creates a new instance with the given format and supported mime types which only encodes types for which the specified predicate returnstrue.protectedKotlinSerializationBinaryEncoder(T format, MimeType... supportedMimeTypes) Creates a new instance with the given format and supported mime types which only encodes types annotated with@Serializableat type or generics level.KotlinSerializationStringDecoder(T format, Predicate<ResolvableType> typePredicate, MimeType... supportedMimeTypes) Creates a new instance with the given format and supported mime types which only decodes types for which the specified predicate returnstrue.KotlinSerializationStringDecoder(T format, MimeType... supportedMimeTypes) Creates a new instance with the given format and supported mime types which only decodes types annotated with@Serializableat type or generics level.protectedKotlinSerializationStringEncoder(T format, Predicate<ResolvableType> typePredicate, MimeType... supportedMimeTypes) Creates a new instance with the given format and supported mime types which only encodes types for which the specified predicate returnstrue.protectedKotlinSerializationStringEncoder(T format, MimeType... supportedMimeTypes) Creates a new instance with the given format and supported mime types which only encodes types annotated with@Serializableat type or generics level.protectedKotlinSerializationSupport(T format, Predicate<ResolvableType> typePredicate, MimeType... supportedMimeTypes) Creates a new instance with the given format and supported mime types which only encode types for which the specified predicate returnstrue.protectedKotlinSerializationSupport(T format, MimeType... supportedMimeTypes) Creates a new instance with the given format and supported mime types which only handle types annotated with@Serializableat type or generics level. -
Uses of MimeType in org.springframework.http.codec.cbor
Methods in org.springframework.http.codec.cbor with parameters of type MimeTypeModifier and TypeMethodDescriptionJackson2CborDecoder.decode(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Deprecated, for removal: This API element is subject to removal in a future version.JacksonCborDecoder.decode(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Jackson2CborEncoder.encode(Publisher<?> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Deprecated, for removal: This API element is subject to removal in a future version.JacksonCborEncoder.encode(Publisher<?> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Constructors in org.springframework.http.codec.cbor with parameters of type MimeTypeModifierConstructorDescriptionJackson2CborDecoder(com.fasterxml.jackson.databind.ObjectMapper mapper, MimeType... mimeTypes) Deprecated, for removal: This API element is subject to removal in a future version.Jackson2CborEncoder(com.fasterxml.jackson.databind.ObjectMapper mapper, MimeType... mimeTypes) Deprecated, for removal: This API element is subject to removal in a future version.JacksonCborDecoder(tools.jackson.dataformat.cbor.CBORMapper.Builder builder, MimeType... mimeTypes) Construct a new instance with the providedCBORMapper.Buildercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader), andMimeTypes.JacksonCborDecoder(tools.jackson.dataformat.cbor.CBORMapper mapper, MimeType... mimeTypes) Construct a new instance with the providedCBORMapperandMimeTypes.JacksonCborEncoder(tools.jackson.dataformat.cbor.CBORMapper.Builder builder, MimeType... mimeTypes) Construct a new instance with the providedCBORMapper.Buildercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader), andMimeTypes.JacksonCborEncoder(tools.jackson.dataformat.cbor.CBORMapper mapper, MimeType... mimeTypes) Construct a new instance with the providedCBORMapperandMimeTypes. -
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()Deprecated, for removal: This API element is subject to removal in a future version.AbstractJackson2Decoder.getDecodableMimeTypes(ResolvableType targetType) Deprecated, for removal: This API element is subject to removal in a future version.AbstractJackson2Encoder.getEncodableMimeTypes()Deprecated, for removal: This API element is subject to removal in a future version.AbstractJackson2Encoder.getEncodableMimeTypes(ResolvableType elementType) Deprecated, for removal: This API element is subject to removal in a future version.Jackson2CodecSupport.getMediaTypesForProblemDetail()Deprecated, for removal: This API element is subject to removal in a future version.Return the supported media type(s) forProblemDetail.Jackson2JsonEncoder.getMediaTypesForProblemDetail()Deprecated, for removal: This API element is subject to removal in a future version.JacksonJsonEncoder.getMediaTypesForProblemDetail()Jackson2CodecSupport.getMimeTypes()Deprecated, for removal: This API element is subject to removal in a future version.Subclasses should expose this as "decodable" or "encodable" mime types.Jackson2CodecSupport.getMimeTypes(ResolvableType elementType) Deprecated, for removal: This API element is subject to removal in a future version.Jackson2CodecSupport.getObjectMapperRegistrations()Deprecated, for removal: This API element is subject to removal in a future version.Jackson2CodecSupport.getObjectMappersForType(Class<?> clazz) Deprecated, for removal: This API element is subject to removal in a future version.Return ObjectMapper registrations for the given class, if any.Methods in org.springframework.http.codec.json with parameters of type MimeTypeModifier and TypeMethodDescriptionbooleanAbstractJackson2Decoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) Deprecated, for removal: This API element is subject to removal in a future version.booleanGsonDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanJacksonJsonDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanAbstractJackson2Encoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) Deprecated, for removal: This API element is subject to removal in a future version.booleanGsonEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) booleanJacksonJsonEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) protected com.fasterxml.jackson.databind.ObjectWriterAbstractJackson2Encoder.customizeWriter(com.fasterxml.jackson.databind.ObjectWriter writer, @Nullable MimeType mimeType, ResolvableType elementType, @Nullable Map<String, Object> hints) Deprecated, for removal: This API element is subject to removal in a future version.Subclasses can use this method to customize theObjectWriterused for writing values.protected com.fasterxml.jackson.databind.ObjectWriterJackson2JsonEncoder.customizeWriter(com.fasterxml.jackson.databind.ObjectWriter writer, @Nullable MimeType mimeType, ResolvableType elementType, @Nullable Map<String, Object> hints) Deprecated, for removal: This API element is subject to removal in a future version.protected tools.jackson.databind.ObjectWriterJacksonJsonEncoder.customizeWriter(tools.jackson.databind.ObjectWriter writer, @Nullable MimeType mimeType, ResolvableType elementType, @Nullable Map<String, Object> hints) AbstractJackson2Decoder.decode(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Deprecated, for removal: This API element is subject to removal in a future version.AbstractJackson2Decoder.decode(DataBuffer dataBuffer, ResolvableType targetType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Deprecated, for removal: This API element is subject to removal in a future version.GsonDecoder.decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) GsonDecoder.decode(DataBuffer buffer, ResolvableType targetType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) KotlinSerializationJsonDecoder.decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) AbstractJackson2Decoder.decodeToMono(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Deprecated, for removal: This API element is subject to removal in a future version.AbstractJackson2Encoder.encode(Publisher<?> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Deprecated, for removal: This API element is subject to removal in a future version.GsonEncoder.encode(Publisher<?> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) KotlinSerializationJsonEncoder.encodeNonStream(Publisher<?> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) AbstractJackson2Encoder.encodeValue(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Deprecated, for removal: This API element is subject to removal in a future version.GsonEncoder.encodeValue(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) protected com.fasterxml.jackson.core.JsonEncodingAbstractJackson2Encoder.getJsonEncoding(@Nullable MimeType mimeType) Deprecated, for removal: This API element is subject to removal in a future version.Determine the JSON encoding to use for the given mime type.protected byte @Nullable []AbstractJackson2Encoder.getStreamingMediaTypeSeparator(@Nullable MimeType mimeType) Deprecated, for removal: This API element is subject to removal in a future version.Return the separator to use for the given mime type.protected byte @Nullable []Jackson2SmileEncoder.getStreamingMediaTypeSeparator(@Nullable MimeType mimeType) Deprecated, for removal: This API element is subject to removal in a future version.Return the separator to use for the given mime type.protected booleanGsonEncoder.isStreamingMediaType(@Nullable MimeType mimeType) Return the separator to use for the given mime type.protected Flux<DataBuffer> AbstractJackson2Decoder.processInput(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Deprecated, for removal: This API element is subject to removal in a future version.Process the input publisher into a flux.protected Flux<DataBuffer> Jackson2JsonDecoder.processInput(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Deprecated, for removal: This API element is subject to removal in a future version.protected Flux<DataBuffer> JacksonJsonDecoder.processInput(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) protected @Nullable com.fasterxml.jackson.databind.ObjectMapperJackson2CodecSupport.selectObjectMapper(ResolvableType targetType, @Nullable MimeType targetMimeType) Deprecated, for removal: This API element is subject to removal in a future version.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 booleanJackson2CodecSupport.supportsMimeType(@Nullable MimeType mimeType) Deprecated, for removal: This API element is subject to removal in a future version.Method parameters in org.springframework.http.codec.json with type arguments of type MimeTypeModifier and TypeMethodDescriptionvoidJackson2CodecSupport.registerObjectMappersForType(Class<?> clazz, Consumer<Map<MimeType, com.fasterxml.jackson.databind.ObjectMapper>> registrar) Deprecated, for removal: This API element is subject to removal in a future version.Configure theObjectMapperinstances to use for the givenClass.Constructors in org.springframework.http.codec.json with parameters of type MimeTypeModifierConstructorDescriptionprotectedAbstractJackson2Decoder(com.fasterxml.jackson.databind.ObjectMapper mapper, MimeType... mimeTypes) Deprecated, for removal: This API element is subject to removal in a future version.Constructor with a JacksonObjectMapperto use.protectedAbstractJackson2Encoder(com.fasterxml.jackson.databind.ObjectMapper mapper, MimeType... mimeTypes) Deprecated, for removal: This API element is subject to removal in a future version.Constructor with a JacksonObjectMapperto use.GsonDecoder(com.google.gson.Gson gson, MimeType... mimeTypes) Construct a new decoder using the givenGsoninstance and the provided MIME types.GsonEncoder(com.google.gson.Gson gson, MimeType... mimeTypes) Construct a new encoder using the givenGsoninstance and the provided MIME types.protectedJackson2CodecSupport(com.fasterxml.jackson.databind.ObjectMapper objectMapper, MimeType... mimeTypes) Deprecated, for removal: This API element is subject to removal in a future version.Constructor with a JacksonObjectMapperto use.Jackson2JsonDecoder(com.fasterxml.jackson.databind.ObjectMapper mapper, MimeType... mimeTypes) Deprecated, for removal: This API element is subject to removal in a future version.Jackson2JsonEncoder(com.fasterxml.jackson.databind.ObjectMapper mapper, MimeType... mimeTypes) Deprecated, for removal: This API element is subject to removal in a future version.Jackson2SmileDecoder(com.fasterxml.jackson.databind.ObjectMapper mapper, MimeType... mimeTypes) Deprecated, for removal: This API element is subject to removal in a future version.Jackson2SmileEncoder(com.fasterxml.jackson.databind.ObjectMapper mapper, MimeType... mimeTypes) Deprecated, for removal: This API element is subject to removal in a future version.JacksonJsonDecoder(tools.jackson.databind.json.JsonMapper.Builder builder, MimeType... mimeTypes) Construct a new instance with the providedJsonMapper.Buildercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader), andMimeTypes.JacksonJsonDecoder(tools.jackson.databind.json.JsonMapper mapper, MimeType... mimeTypes) Construct a new instance with the providedJsonMapperandMimeTypes.JacksonJsonEncoder(tools.jackson.databind.json.JsonMapper.Builder builder, MimeType... mimeTypes) Construct a new instance with the providedJsonMapper.Buildercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader)andProblemDetailJacksonMixin, andMimeTypes.JacksonJsonEncoder(tools.jackson.databind.json.JsonMapper mapper, MimeType... mimeTypes) Construct a new instance with the providedJsonMapperandMimeTypes. -
Uses of MimeType in org.springframework.http.codec.protobuf
Fields in org.springframework.http.codec.protobuf declared as MimeTypeModifier and TypeFieldDescriptionprotected static final MimeType[]ProtobufCodecSupport.MIME_TYPESMethods in org.springframework.http.codec.protobuf that return types with arguments of type MimeTypeModifier and TypeMethodDescriptionProtobufDecoder.getDecodableMimeTypes()ProtobufJsonDecoder.getDecodableMimeTypes()ProtobufEncoder.getEncodableMimeTypes()ProtobufJsonEncoder.getEncodableMimeTypes()ProtobufCodecSupport.getMimeTypes()Methods in org.springframework.http.codec.protobuf with parameters of type MimeTypeModifier and TypeMethodDescriptionbooleanProtobufDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanProtobufJsonDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanProtobufEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) booleanProtobufJsonEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) Flux<com.google.protobuf.Message> ProtobufDecoder.decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) com.google.protobuf.MessageProtobufDecoder.decode(DataBuffer dataBuffer, ResolvableType targetType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Flux<com.google.protobuf.Message> ProtobufJsonDecoder.decode(Publisher<DataBuffer> inputStream, ResolvableType targetType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) com.google.protobuf.MessageProtobufJsonDecoder.decode(DataBuffer dataBuffer, ResolvableType targetType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Mono<com.google.protobuf.Message> ProtobufDecoder.decodeToMono(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Mono<com.google.protobuf.Message> ProtobufJsonDecoder.decodeToMono(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) ProtobufEncoder.encode(Publisher<? extends com.google.protobuf.Message> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) ProtobufJsonEncoder.encode(Publisher<? extends com.google.protobuf.Message> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) ProtobufEncoder.encodeValue(com.google.protobuf.Message message, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) ProtobufJsonEncoder.encodeValue(com.google.protobuf.Message message, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) protected booleanProtobufCodecSupport.supportsMimeType(@Nullable MimeType mimeType) Method parameters in org.springframework.http.codec.protobuf with type arguments of type MimeTypeModifier and TypeMethodDescriptionprotected voidProtobufCodecSupport.setMimeTypes(List<MimeType> mimeTypes) protected voidProtobufEncoder.setMimeTypes(List<MimeType> mimeTypes) -
Uses of MimeType in org.springframework.http.codec.smile
Methods in org.springframework.http.codec.smile with parameters of type MimeTypeModifier and TypeMethodDescriptionprotected byte @Nullable []JacksonSmileEncoder.getStreamingMediaTypeSeparator(@Nullable MimeType mimeType) Return the separator to use for the given mime type.Constructors in org.springframework.http.codec.smile with parameters of type MimeTypeModifierConstructorDescriptionJacksonSmileDecoder(tools.jackson.dataformat.smile.SmileMapper.Builder builder, MimeType... mimeTypes) Construct a new instance with the providedSmileMapper.Buildercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader), andMimeTypes.JacksonSmileDecoder(tools.jackson.dataformat.smile.SmileMapper mapper, MimeType... mimeTypes) Construct a new instance with the providedSmileMapperandMimeTypes.JacksonSmileEncoder(tools.jackson.dataformat.smile.SmileMapper.Builder builder, MimeType... mimeTypes) Construct a new instance with the providedSmileMappercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader), andMimeTypes.JacksonSmileEncoder(tools.jackson.dataformat.smile.SmileMapper mapper, MimeType... mimeTypes) Construct a new instance with the providedSmileMapperandMimeTypes. -
Uses of MimeType in org.springframework.http.codec.xml
Methods in org.springframework.http.codec.xml with parameters of type MimeTypeModifier and TypeMethodDescriptionbooleanJacksonXmlDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanJaxb2XmlDecoder.canDecode(ResolvableType elementType, @Nullable MimeType mimeType) booleanJacksonXmlEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) booleanJaxb2XmlEncoder.canEncode(ResolvableType elementType, @Nullable MimeType mimeType) JacksonXmlDecoder.decode(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Jaxb2XmlDecoder.decode(Publisher<DataBuffer> inputStream, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Jaxb2XmlDecoder.decode(DataBuffer dataBuffer, ResolvableType targetType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) XmlEventDecoder.decode(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Jaxb2XmlDecoder.decodeToMono(Publisher<DataBuffer> input, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) JacksonXmlEncoder.encode(Publisher<?> inputStream, DataBufferFactory bufferFactory, ResolvableType elementType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) protected Flux<DataBuffer> Jaxb2XmlEncoder.encode(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Jaxb2XmlEncoder.encodeValue(Object value, DataBufferFactory bufferFactory, ResolvableType valueType, @Nullable MimeType mimeType, @Nullable Map<String, Object> hints) Constructors in org.springframework.http.codec.xml with parameters of type MimeTypeModifierConstructorDescriptionJacksonXmlDecoder(tools.jackson.dataformat.xml.XmlMapper.Builder builder, MimeType... mimeTypes) Construct a new instance with the providedXmlMapper.Buildercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader), andMimeTypes.JacksonXmlDecoder(tools.jackson.dataformat.xml.XmlMapper mapper, MimeType... mimeTypes) Construct a new instance with the providedXmlMapperandMimeTypes.JacksonXmlEncoder(tools.jackson.dataformat.xml.XmlMapper.Builder builder, MimeType... mimeTypes) Construct a new instance with the providedXmlMapper.Buildercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader), andMimeTypes.JacksonXmlEncoder(tools.jackson.dataformat.xml.XmlMapper mapper, MimeType... mimeTypes) Construct a new instance with the providedXmlMapperandMimeTypes.Jaxb2XmlDecoder(MimeType... supportedMimeTypes) Create aJaxb2XmlDecoderwith the specified MIME types. -
Uses of MimeType in org.springframework.messaging.converter
Fields in org.springframework.messaging.converter declared as MimeTypeModifier and TypeFieldDescriptionstatic final MimeTypeProtobufMessageConverter.PROTOBUFThe mime-type for protobufapplication/x-protobuf.Methods in org.springframework.messaging.converter that return MimeTypeModifier and TypeMethodDescriptionAbstractMessageConverter.getDefaultContentType(Object payload) Return the default content type for the payload.DefaultContentTypeResolver.getDefaultMimeType()Return the default MIME type to use if noMessageHeaders.CONTENT_TYPEheader is present.AbstractMessageConverter.getMimeType(@Nullable MessageHeaders headers) ContentTypeResolver.resolve(@Nullable MessageHeaders headers) Determine theMimeTypeof a message from the given MessageHeaders.DefaultContentTypeResolver.resolve(@Nullable 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 voidAbstractMessageConverter.addSupportedMimeTypes(MimeType... supportedMimeTypes) Allows subclasses to add more supported mime types.protected tools.jackson.core.JsonEncodingJacksonJsonMessageConverter.getJsonEncoding(@Nullable MimeType contentType) Determine the JSON encoding to use for the given content type.protected com.fasterxml.jackson.core.JsonEncodingMappingJackson2MessageConverter.getJsonEncoding(@Nullable MimeType contentType) Deprecated, for removal: This API element is subject to removal in a future version.Determine the JSON encoding to use for the given content type.voidDefaultContentTypeResolver.setDefaultMimeType(@Nullable MimeType defaultMimeType) Set the default MIME type to use when there is noMessageHeaders.CONTENT_TYPEheader present.Constructors in org.springframework.messaging.converter with parameters of type MimeTypeModifierConstructorDescriptionprotectedAbstractMessageConverter(MimeType supportedMimeType) Constructor with a single MIME type.protectedAbstractMessageConverter(MimeType... supportedMimeTypes) Constructor with multiple MIME types.JacksonJsonMessageConverter(MimeType... supportedMimeTypes) Construct a new instance with aJsonMappercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader)and the providedMimeTypes.JacksonJsonMessageConverter(tools.jackson.databind.json.JsonMapper.Builder builder, MimeType... supportedMimeTypes) Construct a new instance with the providedJsonMappercustomized with theJacksonModules found byMapperBuilder.findModules(ClassLoader), and the providedMimeTypes.JacksonJsonMessageConverter(tools.jackson.databind.json.JsonMapper mapper, MimeType... supportedMimeTypes) Construct a new instance with the providedJsonMapperand the providedMimeTypes.MappingJackson2MessageConverter(com.fasterxml.jackson.databind.ObjectMapper objectMapper, MimeType... supportedMimeTypes) Deprecated, for removal: This API element is subject to removal in a future version.Construct aMappingJackson2MessageConverterwith a customObjectMapper, supporting one or more custom MIME types.MappingJackson2MessageConverter(MimeType... supportedMimeTypes) Deprecated, for removal: This API element is subject to removal in a future version.Construct aMappingJackson2MessageConverterwith a defaultObjectMapper, 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 MimeTypeModifierConstructorDescriptionprotectedAbstractMessageConverter(Collection<MimeType> supportedMimeTypes) Constructor with 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 TypeMethodDescriptionPayloadMethodArgumentResolver.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 dataMimeTypeselected for the underlying RSocket at connection time.RSocketRequester.metadataMimeType()Return the metadataMimeTypeselected for the underlying RSocket at connection time.Methods in org.springframework.messaging.rsocket with parameters of type MimeTypeModifier and TypeMethodDescriptionRSocketRequester.Builder.dataMimeType(@Nullable MimeType mimeType) Configure the payload data MimeType to specify on theSETUPframe that applies to the whole connection.default <T> Decoder<T> RSocketStrategies.decoder(ResolvableType elementType, @Nullable MimeType mimeType) Find a compatible Decoder for the given element type.default <T> Encoder<T> RSocketStrategies.encoder(ResolvableType elementType, @Nullable MimeType mimeType) Find a compatible Encoder for the given element type.Extract a map of values from the givenPayloadmetadata.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 aPublisherviaReactiveAdapterRegistry.Use this to append additional metadata entries when using composite metadata.RSocketRequester.Builder.metadataMimeType(MimeType mimeType) Configure the payload metadata MimeType to specify on theSETUPframe that applies to the whole connection.<T> voidDefaultMetadataExtractor.metadataToExtract(MimeType mimeType, Class<T> targetType, BiConsumer<T, Map<String, Object>> mapper) <T> voidDefaultMetadataExtractor.metadataToExtract(MimeType mimeType, ParameterizedTypeReference<T> type, BiConsumer<T, Map<String, Object>> mapper) default voidMetadataExtractorRegistry.metadataToExtract(MimeType mimeType, Class<?> targetType, @Nullable String name) Decode metadata entries with the givenMimeTypeto the specified target class, and store the decoded value in the output map under the given name.<T> voidMetadataExtractorRegistry.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 voidMetadataExtractorRegistry.metadataToExtract(MimeType mimeType, ParameterizedTypeReference<?> targetType, @Nullable String name) Variant ofMetadataExtractorRegistry.metadataToExtract(MimeType, Class, String)that acceptsParameterizedTypeReferenceinstead ofClassfor specifying a target type with generic parameters.<T> voidMetadataExtractorRegistry.metadataToExtract(MimeType mimeType, ParameterizedTypeReference<T> type, BiConsumer<T, Map<String, Object>> mapper) Variant ofMetadataExtractorRegistry.metadataToExtract(MimeType, Class, BiConsumer)that acceptsParameterizedTypeReferenceinstead ofClassfor specifying a target type with generic parameters.RSocketRequester.Builder.setupMetadata(Object value, @Nullable MimeType mimeType) Add metadata entry to the setup payload.static RSocketRequesterRSocketRequester.wrap(io.rsocket.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 TypeMethodDescriptionvoidRSocketMessageHandler.setDefaultDataMimeType(@Nullable MimeType mimeType) Configure the default content type to use for data payloads if theSETUPframe did not specify one.voidRSocketMessageHandler.setDefaultMetadataMimeType(MimeType mimeType) Configure the defaultMimeTypefor payload data if theSETUPframe 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 TypeMethodDescriptionvoidStompHeaderAccessor.setContentType(MimeType contentType) voidStompHeaders.setContentType(@Nullable 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 TypeMethodDescriptionvoidMessageHeaderAccessor.setContentType(MimeType contentType) -
Uses of MimeType in org.springframework.util
Classes in org.springframework.util that implement interfaces with type arguments of type MimeTypeModifier and TypeClassDescriptionclassRepresents a MIME Type, as originally defined in RFC 2046 and subsequently used in other Internet protocols including HTTP.Fields in org.springframework.util declared as MimeTypeModifier and TypeFieldDescriptionstatic final MimeTypeMimeTypeUtils.ALLPublic constant mime type that includes all media ranges (i.e.static final MimeTypeMimeTypeUtils.APPLICATION_GRAPHQLPublic constant mime type forapplication/graphql+json.static final MimeTypeMimeTypeUtils.APPLICATION_JSONPublic constant mime type forapplication/json.static final MimeTypeMimeTypeUtils.APPLICATION_OCTET_STREAMPublic constant mime type forapplication/octet-stream.static final MimeTypeMimeTypeUtils.APPLICATION_XMLPublic constant mime type forapplication/xml.static final MimeTypeMimeTypeUtils.IMAGE_GIFPublic constant mime type forimage/gif.static final MimeTypeMimeTypeUtils.IMAGE_JPEGPublic constant mime type forimage/jpeg.static final MimeTypeMimeTypeUtils.IMAGE_PNGPublic constant mime type forimage/png.static final MimeTypeMimeTypeUtils.TEXT_HTMLPublic constant mime type fortext/html.static final MimeTypeMimeTypeUtils.TEXT_PLAINPublic constant mime type fortext/plain.static final MimeTypeMimeTypeUtils.TEXT_XMLPublic constant mime type fortext/xml.Methods in org.springframework.util with type parameters of type MimeTypeModifier and TypeMethodDescriptionstatic <T extends MimeType>
voidMimeTypeUtils.sortBySpecificity(List<T> mimeTypes) Sort the given list ofMimeTypeobjects by specificity.Methods in org.springframework.util that return MimeTypeModifier and TypeMethodDescriptionstatic MimeTypeMimeTypeUtils.parseMimeType(String mimeType) Parse the given String into a singleMimeType.static MimeTypeParse the given String value into aMimeTypeobject, 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 ofMimeTypeobjects.Methods in org.springframework.util with parameters of type MimeTypeModifier and TypeMethodDescriptionintCompares this MIME Type to another alphabetically.booleanMimeType.equalsTypeAndSubtype(@Nullable MimeType other) Similar toMimeType.equals(Object)but based on the type and subtype only, i.e.booleanIndicate whether this MIME Type includes the given MIME Type.booleanMimeType.isCompatibleWith(@Nullable MimeType other) Indicate whether this MIME Type is compatible with the given MIME Type.booleanMimeType.isLessSpecific(MimeType other) Indicates whether thisMimeTypeis less specific than the given type.booleanMimeType.isMoreSpecific(MimeType other) Indicates whether thisMimeTypeis more specific than the given type.Method parameters in org.springframework.util with type arguments of type MimeTypeModifier and TypeMethodDescriptionbooleanMimeType.isPresentIn(Collection<? extends MimeType> mimeTypes) UnlikeCollection.contains(Object)which relies onMimeType.equals(Object), this method only checks the type and the subtype, but otherwise ignores parameters.static StringMimeTypeUtils.toString(Collection<? extends MimeType> mimeTypes) Generate a string representation of the given collection ofMimeTypeobjects.Constructors in org.springframework.util with parameters of type MimeTypeModifierConstructorDescriptionprotectedCopy-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