Package com.inrupt.client
Class Response.BodyHandlers
java.lang.Object
com.inrupt.client.Response.BodyHandlers
Convenience methods for creating common
Response.BodyHandler
objects.-
Method Summary
Modifier and TypeMethodDescriptionstatic Response.BodyHandler<Void>
Creates a response handler that discards the body.static Response.BodyHandler<byte[]>
Creates abyte[]
response handler.static Response.BodyHandler<InputStream>
Creates anInputStream
-based response handler.static Response.BodyHandler<String>
ofString()
Creates aString
-based response handler.
-
Method Details
-
ofByteArray
Creates abyte[]
response handler.- Returns:
- the body handler
-
ofString
Creates aString
-based response handler.- Returns:
- the body handler
-
ofInputStream
Creates anInputStream
-based response handler.- Returns:
- the body handler
-
discarding
Creates a response handler that discards the body.- Returns:
- the body handler
-