Package com.inrupt.client
Class Request.BodyPublishers
java.lang.Object
com.inrupt.client.Request.BodyPublishers
- Enclosing class:
- Request
Built-in
Request.BodyPublisher
implementations.-
Method Summary
Modifier and TypeMethodDescriptionstatic Request.BodyPublisher
noBody()
Create an emptyRequest.BodyPublisher
.static Request.BodyPublisher
ofByteArray
(byte[] body) Create a byte-array-basedRequest.BodyPublisher
.static Request.BodyPublisher
ofInputStream
(InputStream body) Create an InputStream-basedRequest.BodyPublisher
.static Request.BodyPublisher
Create a String-basedRequest.BodyPublisher
.
-
Method Details
-
ofString
Create a String-basedRequest.BodyPublisher
.- Parameters:
body
- the request body- Returns:
- the publisher
-
ofByteArray
Create a byte-array-basedRequest.BodyPublisher
.- Parameters:
body
- the request body- Returns:
- the publisher
-
ofInputStream
Create an InputStream-basedRequest.BodyPublisher
.- Parameters:
body
- the request body- Returns:
- the publisher
-
noBody
Create an emptyRequest.BodyPublisher
.- Returns:
- the publisher
-