Package com.github.tadukoo.web.rest.json
Class JSONObjectBodyHandler
java.lang.Object
com.github.tadukoo.web.rest.json.JSONObjectBodyHandler
- All Implemented Interfaces:
HttpResponse.BodyHandler<com.github.tadukoo.parsing.json.JSONObject>
public class JSONObjectBodyHandler
extends Object
implements HttpResponse.BodyHandler<com.github.tadukoo.parsing.json.JSONObject>
A Response Body Handler used for grabbing the response as a
JSONObject
.- Version:
- Alpha v.0.1
- Author:
- Logan Ferree (Tadukoo)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionHttpResponse.BodySubscriber<com.github.tadukoo.parsing.json.JSONObject>
apply
(HttpResponse.ResponseInfo responseInfo) static HttpResponse.BodySubscriber<com.github.tadukoo.parsing.json.JSONObject>
asJSON()
-
Constructor Details
-
JSONObjectBodyHandler
public JSONObjectBodyHandler()
-
-
Method Details
-
apply
public HttpResponse.BodySubscriber<com.github.tadukoo.parsing.json.JSONObject> apply(HttpResponse.ResponseInfo responseInfo) - Specified by:
apply
in interfaceHttpResponse.BodyHandler<com.github.tadukoo.parsing.json.JSONObject>
-
asJSON
- Returns:
- A Response Body Subscriber that will convert a response into a
JSONObject
-