# Uses of Interface
java.util.concurrent.Flow.Publisher

Packages that use Flow.Publisher
Package
Description
java.net.http
HTTP Client and WebSocket APIs
java.util.concurrent
Utility classes commonly useful in concurrent programming.

## Uses of Flow.Publisher in java.net.http

Subinterfaces of Flow.Publisher in java.net.http
Modifier and Type
Interface
Description
`static interface`
`HttpRequest.BodyPublisher`
A `BodyPublisher` converts high-level Java objects into a flow of byte buffers suitable for sending as a request body.
Methods in java.net.http that return types with arguments of type Flow.Publisher
Modifier and Type
Method
Description
`static HttpResponse.BodyHandler<Flow.Publisher<List<ByteBuffer>>>`
HttpResponse.BodyHandlers.`ofPublisher()`
Returns a `BodyHandler<Publisher<List<ByteBuffer>>>` that creates a `BodySubscriber``<Publisher<List<ByteBuffer>>>` obtained from `BodySubscribers.ofPublisher()`.
`static HttpResponse.BodySubscriber<Flow.Publisher<List<ByteBuffer>>>`
HttpResponse.BodySubscribers.`ofPublisher()`
Returns a response subscriber which publishes the response body through a `Publisher<List<ByteBuffer>>`.
Methods in java.net.http with parameters of type Flow.Publisher
Modifier and Type
Method
Description
`static HttpRequest.BodyPublisher`
HttpRequest.BodyPublishers.`fromPublisher(Flow.Publisher<? extends ByteBuffer> publisher)`
Returns a request body publisher whose body is retrieved from the given `Flow.Publisher`.
`static HttpRequest.BodyPublisher`
HttpRequest.BodyPublishers.`fromPublisher(Flow.Publisher<? extends ByteBuffer> publisher, long contentLength)`
Returns a request body publisher whose body is retrieved from the given `Flow.Publisher`.

## Uses of Flow.Publisher in java.util.concurrent

Subinterfaces of Flow.Publisher in java.util.concurrent
Modifier and Type
Interface
Description
`static interface`
`Flow.Processor<T,R>`
A component that acts as both a Subscriber and Publisher.
Classes in java.util.concurrent that implement Flow.Publisher
Modifier and Type
Class
Description
`class`
`SubmissionPublisher<T>`
A `Flow.Publisher` that asynchronously issues submitted (non-null) items to current subscribers until it is closed.