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 SummaryConstructors
- 
Method SummaryModifier 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- 
JSONObjectBodyHandlerpublic JSONObjectBodyHandler()
 
- 
- 
Method Details- 
applypublic HttpResponse.BodySubscriber<com.github.tadukoo.parsing.json.JSONObject> apply(HttpResponse.ResponseInfo responseInfo) - Specified by:
- applyin interface- HttpResponse.BodyHandler<com.github.tadukoo.parsing.json.JSONObject>
 
- 
asJSON- Returns:
- A Response Body Subscriber that will convert a response into a JSONObject
 
 
-