Uses of Class
org.apache.juneau.commons.http.MediaRanges
Packages that use MediaRanges
Package
Description
Lightweight HTTP header value types and parsing utilities.
HTTP Part Annotations
Predefined HTTP headers, parts, entities, resources, and responses built on the classic Apache HttpComponents API.
HTTP Header Beans
Next-generation HTTP header implementations.
Serializer API
-
Uses of MediaRanges in org.apache.juneau.commons.http
Fields in org.apache.juneau.commons.http declared as MediaRangesModifier and TypeFieldDescriptionstatic final MediaRangesMediaRanges.EMPTYRepresents an empty media ranges object.Methods in org.apache.juneau.commons.http that return MediaRangesModifier and TypeMethodDescriptionMediaRanges.forEachRange(Consumer<MediaRange> action) Performs an action on the media ranges that make up this object.static MediaRangesReturns a parsedAccept header value. -
Uses of MediaRanges in org.apache.juneau.http
Methods in org.apache.juneau.http with parameters of type MediaRangesMethod parameters in org.apache.juneau.http with type arguments of type MediaRangesModifier and TypeMethodDescriptionstatic AcceptHttpHeaders.acceptLazyParsed(Supplier<MediaRanges> value) -
Uses of MediaRanges in org.apache.juneau.http.classic
Methods in org.apache.juneau.http.classic with parameters of type MediaRangesModifier and TypeMethodDescriptionstatic final AcceptHttpHeaders.accept(MediaRanges value) Creates a newAcceptheader.static final BasicMediaRangesHeaderHttpHeaders.mediaRangesHeader(String name, MediaRanges value) Creates a newBasicMediaRangesHeaderheader.Method parameters in org.apache.juneau.http.classic with type arguments of type MediaRangesModifier and TypeMethodDescriptionstatic final AcceptHttpHeaders.accept(Supplier<MediaRanges> value) Creates a newAcceptheader with a delayed value.static final BasicMediaRangesHeaderHttpHeaders.mediaRangesHeader(String name, Supplier<MediaRanges> value) Creates a newBasicMediaRangesHeaderheader with a delayed value. -
Uses of MediaRanges in org.apache.juneau.http.classic.header
Methods in org.apache.juneau.http.classic.header that return MediaRangesModifier and TypeMethodDescriptionBasicMediaRangesHeader.orElse(MediaRanges other) Return the value if present, otherwise returnother .BasicMediaRangesHeader.toMediaRanges()Returns the header value as aMediaRanges.Methods in org.apache.juneau.http.classic.header that return types with arguments of type MediaRangesModifier and TypeMethodDescriptionBasicMediaRangesHeader.asMediaRanges()Returns the header value as aMediaRangeswrapped in anOptional.Methods in org.apache.juneau.http.classic.header with parameters of type MediaRangesModifier and TypeMethodDescriptionstatic AcceptAccept.of(MediaRanges value) Static creator.static BasicMediaRangesHeaderBasicMediaRangesHeader.of(String name, MediaRanges value) Static creator.BasicMediaRangesHeader.orElse(MediaRanges other) Return the value if present, otherwise returnother .Method parameters in org.apache.juneau.http.classic.header with type arguments of type MediaRangesModifier and TypeMethodDescriptionstatic AcceptAccept.of(Supplier<MediaRanges> value) Static creator with delayed value.Constructors in org.apache.juneau.http.classic.header with parameters of type MediaRangesModifierConstructorDescriptionAccept(MediaRanges value) Constructor.BasicMediaRangesHeader(String name, MediaRanges value) Constructor.Constructor parameters in org.apache.juneau.http.classic.header with type arguments of type MediaRangesModifierConstructorDescriptionAccept(Supplier<MediaRanges> value) Constructor with delayed value.BasicMediaRangesHeader(String name, Supplier<MediaRanges> value) Constructor with delayed value. -
Uses of MediaRanges in org.apache.juneau.http.header
Methods in org.apache.juneau.http.header that return MediaRangesModifier and TypeMethodDescriptionHttpMediaRangesHeader.orElse(MediaRanges other) HttpMediaRangesHeader.toMediaRanges()Methods in org.apache.juneau.http.header that return types with arguments of type MediaRangesMethods in org.apache.juneau.http.header with parameters of type MediaRangesModifier and TypeMethodDescriptionstatic AcceptAccept.of(MediaRanges value) HttpMediaRangesHeader.orElse(MediaRanges other) Method parameters in org.apache.juneau.http.header with type arguments of type MediaRangesModifier and TypeMethodDescriptionstatic AcceptAccept.ofLazyParsed(Supplier<MediaRanges> supplier) Constructors in org.apache.juneau.http.header with parameters of type MediaRangesModifierConstructorDescriptionAccept(MediaRanges value) protectedHttpMediaRangesHeader(String name, MediaRanges value) -
Uses of MediaRanges in org.apache.juneau.marshall.serializer
Methods in org.apache.juneau.marshall.serializer that return MediaRangesModifier and TypeMethodDescriptionfinal MediaRangesSerializer.getMediaTypeRanges()Returns the media types handled based on the value of theaccept parameter passed into the constructor.