Uses of Interface
io.inverno.mod.http.base.header.Headers.Accept.MediaRange
Packages that use Headers.Accept.MediaRange
Package
Description
Inverno HTTP header API.
Inverno HTTP header API implementation classes including HTTP Header codecs and header service bean.
-
Uses of Headers.Accept.MediaRange in io.inverno.mod.http.base.header
Fields in io.inverno.mod.http.base.header with type parameters of type Headers.Accept.MediaRangeModifier and TypeFieldDescriptionstatic final Comparator<Headers.Accept.MediaRange> Headers.Accept.MediaRange.COMPARATORThe media range comparator based on media range scores.Methods in io.inverno.mod.http.base.header that return Headers.Accept.MediaRangeModifier and TypeMethodDescriptionHeaders.ContentType.toMediaRange()Converts the content type to a media range.Methods in io.inverno.mod.http.base.header that return types with arguments of type Headers.Accept.MediaRangeModifier and TypeMethodDescriptionHeaders.Accept.findAllMatch(Collection<Headers.ContentType> contentTypes) Returns all the content types in the specified collection that matches the accept header sorted from best to worst.default <T> Collection<Headers.AcceptMatch<Headers.Accept.MediaRange, T>> Headers.Accept.findAllMatch(Collection<T> items, Function<T, Headers.ContentType> contentTypeExtractor) Returns all the items in the specified collection whose content type matches the accept header sorted from best to worst.Headers.Accept.findBestMatch(Collection<Headers.ContentType> contentTypes) Returns the content type in the specified collection that best matches the accept header.default <T> Optional<Headers.AcceptMatch<Headers.Accept.MediaRange, T>> Headers.Accept.findBestMatch(Collection<T> items, Function<T, Headers.ContentType> contentTypeExtractor) Returns the item from the specified collection whose content type best matches the accept header.Headers.Accept.MediaRange.findFirstMatch(Headers.ContentType contentType, List<Headers.Accept.MediaRange> mediaRanges) Returns the first media range in the specified list that matches the specified content type.Headers.Accept.getMediaRanges()Returns the list of media ranges defined in the accept header.Method parameters in io.inverno.mod.http.base.header with type arguments of type Headers.Accept.MediaRangeModifier and TypeMethodDescriptionstatic <T> Optional<Headers.AcceptMatch<T, Headers.ContentType>> Headers.Accept.MediaRange.findFirstMatch(Headers.ContentType contentType, Collection<T> items, Function<T, Headers.Accept.MediaRange> mediaRangeExtractor) Returns the first item in the specified collection whose media range matches the specified content type.Headers.Accept.MediaRange.findFirstMatch(Headers.ContentType contentType, List<Headers.Accept.MediaRange> mediaRanges) Returns the first media range in the specified list that matches the specified content type. -
Uses of Headers.Accept.MediaRange in io.inverno.mod.http.base.internal.header
Classes in io.inverno.mod.http.base.internal.header that implement Headers.Accept.MediaRangeMethods in io.inverno.mod.http.base.internal.header that return Headers.Accept.MediaRangeMethods in io.inverno.mod.http.base.internal.header that return types with arguments of type Headers.Accept.MediaRangeConstructor parameters in io.inverno.mod.http.base.internal.header with type arguments of type Headers.Accept.MediaRangeModifierConstructorDescriptionAccept(List<Headers.Accept.MediaRange> ranges) Creates an accept header with the specified list of media range.