Package org.nuxeo.http.test.handler
Class JsonNodeHandler
java.lang.Object
org.nuxeo.http.test.handler.AbstractStatusCodeHandler<com.fasterxml.jackson.databind.JsonNode>
org.nuxeo.http.test.handler.JsonNodeHandler
- All Implemented Interfaces:
ResponseHandler<com.fasterxml.jackson.databind.JsonNode>
public class JsonNodeHandler
extends AbstractStatusCodeHandler<com.fasterxml.jackson.databind.JsonNode>
- Since:
- 2023.13
-
Field Summary
Modifier and TypeFieldDescriptionprotected static final com.fasterxml.jackson.databind.ObjectMapper
Fields inherited from class org.nuxeo.http.test.handler.AbstractStatusCodeHandler
status
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected com.fasterxml.jackson.databind.JsonNode
doHandleResponse
(HttpResponse response) Methods inherited from class org.nuxeo.http.test.handler.AbstractStatusCodeHandler
handleResponse
-
Field Details
-
MAPPER
protected static final com.fasterxml.jackson.databind.ObjectMapper MAPPER
-
-
Constructor Details
-
JsonNodeHandler
public JsonNodeHandler() -
JsonNodeHandler
public JsonNodeHandler(int status) - Parameters:
status
- the status code to assert, or 0 to disable the assertion
-
-
Method Details
-
doHandleResponse
protected com.fasterxml.jackson.databind.JsonNode doHandleResponse(HttpResponse response) throws IOException - Specified by:
doHandleResponse
in classAbstractStatusCodeHandler<com.fasterxml.jackson.databind.JsonNode>
- Throws:
IOException
-