Class ReadableBodyPartHeaders
java.lang.Object
io.helidon.reactive.media.multipart.ReadableBodyPartHeaders
- All Implemented Interfaces:
Headers,BodyPartHeaders,Iterable<Http.HeaderValue>
Readable body part headers.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder class to createReadableBodyPartHeadersinstances. -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of acceptedTypes (Http.Header.ACCEPTheader) content discoveryTypes in quality factor order.all(Http.HeaderName name, Supplier<List<String>> defaultSupplier) Get all values of a header.builder()Create a new builder instance.booleancontains(Http.HeaderName name) Whether these headers contain a header with the provided name.booleancontains(Http.HeaderValue value) Whether these headers contain a header with the provided name and value.Get theContent-Dispositionheader.static ReadableBodyPartHeaderscreate()Create a new instance ofReadableBodyPartHeaders.get(Http.HeaderName name) Get a header value.iterator()Get theContent-Typeheader.intsize()Number of headers in these headers.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.helidon.reactive.media.multipart.BodyPartHeaders
defaultContentTypeMethods inherited from interface io.helidon.common.http.Headers
all, contentLength, contentType, first, isAccepted, toMap, value, valuesMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
builder
Create a new builder instance.- Returns:
- Builder
-
create
Create a new instance ofReadableBodyPartHeaders.- Returns:
- ReadableBodyPartHeaders
-
all
Description copied from interface:HeadersGet all values of a header. -
contains
Description copied from interface:HeadersWhether these headers contain a header with the provided name. -
contains
Description copied from interface:HeadersWhether these headers contain a header with the provided name and value. -
get
Description copied from interface:HeadersGet a header value. -
size
public int size()Description copied from interface:HeadersNumber of headers in these headers. -
acceptedTypes
Description copied from interface:HeadersReturns a list of acceptedTypes (Http.Header.ACCEPTheader) content discoveryTypes in quality factor order. Nevernull. Returns an empty list by default.- Specified by:
acceptedTypesin interfaceHeaders- Returns:
- A list of acceptedTypes media discoveryTypes.
-
iterator
- Specified by:
iteratorin interfaceIterable<Http.HeaderValue>
-
partContentType
Description copied from interface:BodyPartHeadersGet theContent-Typeheader. If theContent-Typeheader is not present, the default value is retrieved usingBodyPartHeaders.defaultContentType().- Specified by:
partContentTypein interfaceBodyPartHeaders- Returns:
- HttpMediaType, never
null
-
contentDisposition
Description copied from interface:BodyPartHeadersGet theContent-Dispositionheader.- Specified by:
contentDispositionin interfaceBodyPartHeaders- Returns:
- ContentDisposition, never
null
-